6.1 About the Compiler
compile, which replaces the interpreted function's definition with the compiled version. A compiled function can call an interpreted function, and vice versa.
> (defun square (x) (* x x)) SQUARE
> (compile 'square) SQUARE
compile-file, which takes a Lisp source file and produces a binary file containing the compiled code. By convention, Lisp source files usually have the extension
.lispand binary files have the extension
.xbin. Evaluating the expression
(compile-file "file.lisp")produces the file
file.xbin. To use the compiled functions, you must load the binary file into Lisp by using the function
load. See Table 2.1 for the appropriate binary file extension for your platform. See Chapter 7, "Additional Extensions to Common Lisp" in The Advanced User's Guide for more information about
disassembleprints the assembly code of a compiled function. If the specified function is not compiled,
disassemblefirst compiles the function and then disassembles the code. You can use
disassembleto check the efficiency of the Compiler's code or to debug a function.
uncompile replaces the compiled version of a function or macro with the original interpreted definition. The function or macro must have been compiled by a call to
compile. You might use
uncompile when you are debugging a function; some debugging tools, such as the Stepper, provide more complete information for intepreted functions than for compiled functions.
Generated with Harlequin WebMaker