Mercurial > repos > rhope
diff ctobin @ 75:0083b2f7b3c7
Partially working implementation of List. Modified build scripts to allow use of other compilers. Fixed some bugs involving method implementations on different types returning different numbers of outputs. Added Fold to the 'builtins' in the comipler.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 06 Jul 2010 07:52:59 -0400 |
parents | |
children | dbe95bfec970 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ctobin Tue Jul 06 07:52:59 2010 -0400 @@ -0,0 +1,22 @@ +#!/bin/sh + +if test ! -f "$1.c"; then + echo "C file missing! Maybe you need to do a full compile?" + exit 1 +fi + +cp runtime/* build/ +cp "$1.c" build/ +cd build +bin=`echo $1 | sed s/\.rhope//` + +if test -f "$bin"; then + rm "$bin" +fi + +if test -z $CC; then + CC="gcc" +fi + +$CC -o $bin $2 "$1.c" blueprint.c context.c fixed_alloc.c object.c +