Extensive work to get compiler to work with R7RS libraries.
authorChris Hanson <org/chris-hanson/cph>
Sun, 14 Oct 2018 02:54:58 +0000 (19:54 -0700)
committerChris Hanson <org/chris-hanson/cph>
Sun, 14 Oct 2018 03:04:08 +0000 (20:04 -0700)
commit99b600327c30a187253cdde9c6b5de4ee74e0e43
tree51f6d23cac04685745fe0e104e5e95c83d83d87a
parent1d8a9318f3d1c7a632ef5e0e0f8d998dbaf457f0
Extensive work to get compiler to work with R7RS libraries.

The bulk of the work is to refactor the debugging info so that it's generated
and consumed properly; this required upgrading the version and introducing a new
top-level info form.

I also eliminated the now-ancient and unused BSM file support, which was making
things more difficult than necessary.

The compiler top level required only to detect an R7RS input file and to compile
each part separately, plus collecting all of the debugging information from the
parts.  Some tweaks were used to make RTL/LAP files work right with multiple
roots.

Finally, the runtime system was modified so that compiled-code blocks and
entries now show the R7RS library name if there is one, both when printed and in
various other places.
17 files changed:
src/compiler/base/asstop.scm
src/compiler/base/crsend.scm
src/compiler/base/toplev.scm
src/compiler/machines/C/compiler.pkg
src/compiler/machines/C/ctop.scm
src/compiler/machines/i386/compiler.pkg
src/compiler/machines/i386/dassm1.scm
src/compiler/machines/svm/compiler.pkg
src/compiler/machines/svm/disassembler.scm
src/compiler/machines/x86-64/compiler.pkg
src/compiler/machines/x86-64/dassm1.scm
src/runtime/conpar.scm
src/runtime/infstr.scm
src/runtime/infutl.scm
src/runtime/library-scode.scm
src/runtime/printer.scm
src/runtime/runtime.pkg