-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ian Piumarta
authored and
Ian Piumarta
committed
Feb 25, 2011
0 parents
commit 36d5edf
Showing
5 changed files
with
4,665 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 : |
Oops, something went wrong.