From 37aec7789434c3ade9a1df630b1eec6c997487b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20B=C3=B6hm?= Date: Mon, 6 Jul 2009 18:17:01 +0200 Subject: add compiler wrapper --- compiler | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 compiler (limited to 'compiler') diff --git a/compiler b/compiler new file mode 100755 index 0000000..0655a11 --- /dev/null +++ b/compiler @@ -0,0 +1,17 @@ +#!/bin/sh + +TESTDIR=${PWD}/test + +pushd src >/dev/null +python __init__.py < ${TESTDIR}/$1.t > ${TESTDIR}/$1.S + +pushd emu >/dev/null +make +./riscas ${TESTDIR}/$1.S ${TESTDIR}/$1.bin +./risci -d ${TESTDIR}/$1.bin +ret=$? +popd >/dev/null + +popd >/dev/null + +exit ${ret} -- cgit v1.2.3