3 Optimizing Lisp Programs
3.6 Debugging compiled code Compiled code can be harder to debug than interpreted code because compiled code retains less environment information and because various optimizations that are performed by the Compiler can affect the execution of the compiled code. To debug compiled code, use the following general guidelines:
The next sections suggest how to debug specific problems in compiled code.
- Increase the safety level of the compiled code by using optimization declarations and then recompile the code. In the default compilation mode, the Compiler has a high
safety level. You should only need to modify the
safety setting if you have previously decreased it to optimize code.
- Use the Common Lisp function
disassemble to disassemble the code.
- 3.6.1 - Tail calls
- 3.6.2 - Special variables
- 3.6.3 - DYNAMIC-EXTENT declarations
The Advanced User's Guide - 9 SEP 1996
Generated with Harlequin WebMaker