Mercurial > repos > tabletprog
comparison compile @ 79:7f635666c73d
Add hash and int32 messages to string. Add hash message to int32. Update compile script
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 16 Jul 2012 01:10:12 -0700 |
parents | 3b0503a67165 |
children | 5071d601fe70 |
comparison
equal
deleted
inserted
replaced
78:abc6f3d644a4 | 79:7f635666c73d |
---|---|
4 | 4 |
5 if test -f "$cname"; then | 5 if test -f "$cname"; then |
6 rm "$cname" | 6 rm "$cname" |
7 fi | 7 fi |
8 | 8 |
9 d8 tpc.js -- $1 > $cname | 9 ./tpc $1 -o $cname |
10 | 10 |
11 if test ! -s "$cname"; then | 11 if test ! -s "$cname"; then |
12 echo "Compilation to C failed" | 12 echo "Compilation to C failed" |
13 exit 1 | 13 exit 1 |
14 fi | 14 fi |
15 | 15 |
16 bin=`echo $1 | sed s/\.tp//` | 16 bin=`echo $1 | sed s/\.tp//` |
17 shift | 17 shift |
18 gcc $@ -o $bin $cname runtime/object.c | 18 gcc $@ -o $bin $cname runtime/object.c -lgc |