All Manuals > LispWorks® User Guide and Reference Manual > 9 The Compiler

9.2 Compiling a source file

The function compile-file takes a pathname as its argument and compiles all the forms in the file, producing a corresponding fasl file (with pathname derived from the source pathname). Any side effects in the source file are only felt once the compiled file is subsequently loaded. Many proclamations, for example, are not visible at compile time. The special form eval-when can be used to force such side effects to take effect at the time of compilation, rather than loading.

9.2.1 Debugging errors from source file compilation

By default, a form is skipped if an error occurs during compilation. If you need to debug an error during compilation by compile-file, set *compiler-break-on-error* to t and compile the file again.


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:19