Skip to content

Commit

Permalink
initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Piumarta authored and Ian Piumarta committed Feb 25, 2011
0 parents commit 36d5edf
Show file tree
Hide file tree
Showing 5 changed files with 4,665 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
CFLAGS = -Wall -g # -Os

.SUFFIXES :

all : opt eval2

boot-eval : boot-eval.c
gcc -g $(CFLAGS) -o boot-eval boot-eval.c

opt : .force
$(MAKE) CFLAGS="$(CFLAGS) -O3 -fomit-frame-pointer -DNDEBUG" boot-eval

debuggc : .force
$(MAKE) CFLAGS="$(CFLAGS) -DDEBUGGC=1" boot-eval

eval : *.l boot-eval
time ./boot-eval boot.l emit.l eval.l > eval.s && cc -c -o eval.o eval.s && size eval.o && gcc -m32 -o eval eval.o

eval2 : eval .force
time ./eval boot.l emit.l eval.l > eval2.s
diff eval.s eval2.s

stats : .force
cat boot.l emit.l | sed 's/.*debug.*//;s/;.*//' | sort -u | wc -l
cat eval.l | sed 's/.*debug.*//;s/;.*//' | sort -u | wc -l
cat boot.l emit.l eval.l | sed 's/.*debug.*//;s/;.*//' | sort -u | wc -l

clean : .force
rm -f *~ *.o boot-eval eval *.s
rm -rf *.dSYM

.force :
Loading

0 comments on commit 36d5edf

Please sign in to comment.