Parent Directory | Revision Log
Links to HEAD: | (view) (annotate) |
Sticky Tag: |
Extracted garbage collector to gc.c
Makefile, fib.st, fib2.st, fac.st: Changed to higher test values.
(mangle) Moved from "stack.c" to "symbols.c". Makefile: Added tail recursion optimization.
(stack.c) Cleaning up.
(check): Added fac.st to the test scripts.
Makefile (check): Also check that fib2.st returns correct result and that printing of circular lists is correct. (clean): Also remove "gmon.out".
Makefile (srcdir): New variable; used throughout. (CFLAGS): Use profiling and coverage testing by default. (stack): Put CFLAGS last. This target also creates coverage object files. (TAGS): Don't traverse CVS directory. (gcov): Create "stack.c.gcov". (stack.c.gcov): Create coverage code listing file. (stack.da): Make "check" (run the program) to create profile output file.
Makefile (LDFLAGS): Include commented-out alternate setting. stack.c (new_val): New values are integers. (push_val): Check malloc return value. (copy_val): Don't protect new_val.
.cvsignore: Ignore all gcov-related files. Makefile (CFLAGS): Do not include any gprof or gcov flags by default. (stack): Moved "-pg" to the alternate CFLAGS line. (check): Changed to 6765. fib.st: Increased to "20"; it's faster now.
Makefile (check): Match change in "fib.st". .cvsignore: Ignore gmon.out (gperf data file).
stack.c (new_val): Set gc_garb flag. (gc_mark): Removed check if val is NULL. (gc_init): Various optimizations. fib.st: Changed to calculate "15 fib;".
Makefile: Compile with "-pg" for profiling. stack.c: Some optimizing: (init_env): Increased gc_limit. (toss, new_val): Don't run GC. (gc_mark): Declare inline. (gc_maybe): New function, all callers of gc_init calls this one instead. (eval): Call gc_maybe.
.cvsignore: Ignore mtrace.log and the TAGS file. Makefile (TAGS): New target. (all): Also make TAGS.
GPL stuff: stack.c, stack.h, Makefile: Added notices stack.c (copying, warranty): New functions. stack.h (copying, warranty): - '' - Other stuff: Makefile (stack): New explicit rule to depend on "stack.h" too. (mtrace): Depend on "stack", not "all". (check): New target. stack.c (main): Don't return error on EOF. (beep, wait): New functions. stack.h (beep, wait): - '' -
(Makefile) Added target to trace memory leaks. (push_int, push_cstring, pack, read, quit) Memory leaks patched.
CFLAGS: Removed "-rdynamic". LDFLAGS: Added "-Xlinker --export-dynamic"; Replaces "-rdynamic". Also, added "-lmcheck" for malloc debugging; *Note Heap Consistency Checking:(libc)Heap Consistency Checking.
Use correct syntax.
Added a Makefile.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.
root@recompile.se | ViewVC Help |
Powered by ViewVC 1.1.26 |