summary refs log tree commit diff
path: root/minic/mcc
blob: 509f3370bd38f065a87fecc1934910e15b59b101 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

TMP=/tmp/minic.s
SRC=$1

if [ -z "$SRC" ]; then
	echo "usage: ./mcc file.c" 1>&2
	exit 1
fi

./minic < $SRC > $TMP.ssa    || exit 1
../lisc/lisc $TMP.ssa > $TMP || exit 1
cc $TMP