tag:blogger.com,1999:blog-1408303152764820644.post1527929701678974404..comments2010-06-05T22:13:30.215-07:00Comments on Spic(e)y Curry: A simple Compilable Programming Language using Python and AssemblerSpiceyCurryhttp://www.blogger.com/profile/06598004434787672751noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-1408303152764820644.post-60572884707584494072010-06-05T22:13:30.215-07:002010-06-05T22:13:30.215-07:00Consider using a Makefile to 'streamline compi...Consider using a Makefile to 'streamline compilation'<br /><br />Into a plain text file called Makefile use something like the following:<br /><br />-- cut --<br />EXE=prog1<br />all: $(EXE)<br /><br />prog1: $(EXE).lc<br /> python newlang.py<br /> as $(EXE).lc.as -o $(EXE).lc.o<br /> ld $(EXE).lc.o -o $(EXE)<br /><br />clean:<br /> rm -f $(EXE) $(EXE).lc.o $(EXE).lc.as<br />-- cut --<br /><br />Then, to compile just issue the command<br />$ make<br />which will only do a recompilation if the prog1.lc file has changed.<br /><br />To remove the intermediate files, do<br />$ make cleanJimhttps://www.blogger.com/profile/03309137601092488322noreply@blogger.com