11 Mar 2007 05:25:04 -0500, Gabriel Dos Reis <<a href="mailto:gdr@cs.tamu.edu">gdr@cs.tamu.edu</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In the system I'm working with, I have the following scenario:<br><br> (I) one part does the following:<br> (1) the system defines some macros<br> (2) those macros need to be present in the environment while
<br> compiling the rest of the files.<br> (3) with GCL, SBCL, CLISP the system builds fine as follows:<br> (a) load the macros in a fresh lisp.<br> (b) save the current image to disk.<br> (c) use that image to compile the rest of the files.
<br> (d) use that image to load all objects and build the<br> final executable.</blockquote><div><br>Simply put:<br><br>(1) Build an program with the macro files. Call it ECL2<br>(2) For each file, use ECL2 to compile it.
<br>(3) Build a program with the macro and the compiled files.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> (II) another part does this for bootstrapping:
<br> (1) start with loading macros<br> (2) for each file in a component II:<br> (a) compile the lisp file to object code<br> (b) load the just compiled object code<br> (3) save the resulting image to disk.
</blockquote><div><br>Here it would apply the same routine as before. Build an ECL2 that contains the macros. For each file, compile it twice: once as a FASL, once as object file (with :system-p t). Load the FASL and continue compiling. Finally link all the object files (macro and compiled files) into a single executable.
<br><br>If you do things this way, the resulting standalone program will mimic the steps of first loading the macros and then loading each FASL. If your system supports this way of working then it should work with ECL.<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">for timing constraints, it is important that the loading of object<br>files doe not go from linear to quadratic.
</blockquote><div><br>I do not understand this very well. <br></div></div><br>Regards,<br><br>Juanjo<br clear="all"><br>-- <br>Dpto. de Fisica Teorica I, Fac. de CC Fisicas, Universidad Complutense,<br>Ciudad Universitaria s/n Madrid 28040 (Spain)
<br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a>