summary refs log tree commit diff
path: root/minic/mcc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-12 14:32:48 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-12 14:32:48 -0400
commitfbee480f2ed31616583cef5735df07e694ff9c5c (patch)
tree56a9b34786be21512925fd52a8a2e9502a8bb45b /minic/mcc
parent31b19a21b8ac2a8ce67864794af88241df7674a6 (diff)
downloadroux-fbee480f2ed31616583cef5735df07e694ff9c5c.tar.gz
add one small test
Diffstat (limited to 'minic/mcc')
-rwxr-xr-xminic/mcc12
1 files changed, 12 insertions, 0 deletions
diff --git a/minic/mcc b/minic/mcc
new file mode 100755
index 0000000..523c7f5
--- /dev/null
+++ b/minic/mcc
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+SRC=$1
+
+if [ -z "$SRC" ]; then
+	echo "usage: ./mcc file.c" 1>&2
+	exit 1
+fi
+
+rm -f /tmp/minic.s
+./minic < $SRC | ../lisc/lisc - > /tmp/minic.s
+[ -f /tmp/minic.s ] && cc /tmp/minic.s