11 Mar 2007 05:25:04 -0500, Gabriel Dos Reis <email@example.com>:
In the system I'm working with, I have the following scenario:
(I) one part does the following:
(1) the system defines some macros
(2) those macros need to be present in the environment while
compiling the rest of the files.
(3) with GCL, SBCL, CLISP the system builds fine as follows:
(a) load the macros in a fresh lisp.
(b) save the current image to disk.
(c) use that image to compile the rest of the files.
(d) use that image to load all objects and build the
(II) another part does this for bootstrapping:
(1) start with loading macros
(2) for each file in a component II:
(a) compile the lisp file to object code
(b) load the just compiled object code
(3) save the resulting image to disk.
for timing constraints, it is important that the loading of object
files doe not go from linear to quadratic.