Change the compiler so that each top-level procedure in the input
authorChris Hanson <org/chris-hanson/cph>
Mon, 21 Aug 1989 19:34:39 +0000 (19:34 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 21 Aug 1989 19:34:39 +0000 (19:34 +0000)
commitcba16e4e88a59cf896679107fc8548b7e5e193d0
tree5caea6af44d57757de12984e7584c8162147dbb2
parentb5abb20d6ddcb3d122626db14af438c0f443a889
Change the compiler so that each top-level procedure in the input
expression is compiled separately, producing a different compiled-code
block for each.  The load-time linking is removed from the sub-blocks
to be performed in the code for the top-level expression, thus
allowing it to be discarded after the expression is evaluated; only
the code needed by the procedures is retained.

The old behavior of the compiler can be obtained by setting the switch
`compiler:compile-by-procedures?' to #f.
18 files changed:
v7/src/compiler/back/lapgn1.scm
v7/src/compiler/base/crsend.scm
v7/src/compiler/base/crstop.scm
v7/src/compiler/base/debug.scm
v7/src/compiler/base/infnew.scm
v7/src/compiler/base/switch.scm
v7/src/compiler/base/toplev.scm
v7/src/compiler/fggen/canon.scm
v7/src/compiler/fggen/fggen.scm
v7/src/compiler/fgopt/simapp.scm
v7/src/compiler/machines/bobcat/compiler.pkg
v7/src/compiler/machines/bobcat/compiler.sf
v7/src/compiler/machines/bobcat/dassm1.scm
v7/src/compiler/machines/bobcat/make.scm-68040
v7/src/compiler/machines/bobcat/rules3.scm
v7/src/compiler/rtlbase/rtline.scm
v7/src/compiler/rtlbase/rtlobj.scm
v7/src/compiler/rtlgen/rtlgen.scm