re-enable computed goto; fix ,help in the repl; subr dispatch optimizations
authorAndy Wingo <wingo@pobox.com>
Mon, 4 Aug 2008 23:03:17 +0000 (01:03 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 4 Aug 2008 23:03:17 +0000 (01:03 +0200)
commit659b4611b6a138fa252a42d1e1a0f4862242454c
tree81ea597791e89aac0e4f850d500acafd7f54820a
parentfbde2b915bfe4139b75e71c4ad5fd701b2558d8f
re-enable computed goto; fix ,help in the repl; subr dispatch optimizations

* m4/labels-as-values.m4: New file, checks for computed goto.

* configure.in: Use AC_C_LABELS_AS_VALUES.

* module/system/repl/command.scm (procedure-documentation): Extend the
  core's procedure-documentation in an ad-hoc way, so that ,help works.

* module/system/vm/core.scm (program-properties): New function.
  (program-documentation): New function.

* src/vm_engine.h (DROP, DROPN): Decrement sp before checking for
  underflow.

* src/vm_system.c (call, tail-call): Add some optimized dispatch for some
  C functions, so that we can avoid consing and the interpreter if
  possible. However currently it seems that I'm always getting the
  scm_call_* trampolines back.
configure.in
m4/labels-as-values.m4 [new file with mode: 0644]
module/system/repl/command.scm
module/system/vm/core.scm
src/vm_engine.h
src/vm_system.c