qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 6d07d0a4ac74f11bcfcda64ff4ffb8c75bc00960
parent bbf90069b3aed188ee1d2a7e5fb83ce93bce51be
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Thu, 21 Apr 2016 11:24:40 -0400

make mcc runable from anywhere

Diffstat:
Mminic/mcc | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/minic/mcc b/minic/mcc @@ -1,5 +1,8 @@ #!/bin/sh +DIR=`cd $(dirname $0); pwd` +QBE=$DIR/../obj/qbe + usage() { echo "usage: mcc [LDFLAGS] file.c" >&2 @@ -28,8 +31,8 @@ then fi -../minic/minic < $file > /tmp/minic.ssa && -../obj/qbe < /tmp/minic.ssa > /tmp/minic.s && +$DIR/minic < $file > /tmp/minic.ssa && +$QBE < /tmp/minic.ssa > /tmp/minic.s && cc $flags /tmp/minic.s if test $? -ne 0