next up previous contents
Next: Compiler's naming convention Up: Compilation Previous: Traceable/Redefinable Code Generation

Altering the size of compiler generated C files

If you have gone through the compilation process of a LISP code, you must have observed that although you submitted a single LISP source file, the LISP tex2html_wrap_inline1791 C compiler decides to create a number of files each of which is of a certain size. Why is this so?

Some C compilers cannot handle big sources, they overflow in symbol tables etc. So you must subdivide the code into smaller modules and get them all compiled. This is not a trivial task since the small modules export and import some C functions. The LISP tex2html_wrap_inline1791 C compiler does this job for you.

The size of `chopping' the generated C source is determined by the content of the LISP atom max!-comp!-size which is set to 2000 units. This atom is defined in lap.lsp which is distributed under the subdirectory compiler Ofcourse you don't have do do a recompilation to set it to another value. You got two alternatives:

  1. You set change it (for example to the value 7000) by a
    (setq max!-comp!-size 7000)
    prior to the compilefile call, in the run of the LISP that has the compiler present. Or
  2. You simply edit the initialization file of the LISP with the compiler present. There in you will find a line:
    (setq max!-comp!-size 2000)
    Change it, as you like.


Gokturk UCOLUK
Fri Nov 1 21:52:13 EET 1996