Go to the first, previous, next, last section, table of contents.


Disassembly

It is possible to disassemble byte-code forms; originally this was so I could figure out why the compiler wasn't working but if you're curious about how the compiler compiles a form it may be of use to you.

Naturally, the output of the disassembler is a listing in Jade's pseudo-machine language -- it won't take a byte-code form and produce the equivalent Lisp code!

Command: disassemble-fun function &optional stream
This function disassembles the compile Lisp function function. It writes a listing to the output stream stream (normally the value of the standard-output variable).

When called interactively it will prompt for a function to disassemble.

When reading the output of the disassembler bear in mind that Jade simulates a stack machine for the code to run on. All calculations are performed on the stack, the value left on the stack when the piece of code ends is the value of the byte-code form.


Go to the first, previous, next, last section, table of contents.