Prints the machine code of a compiled function.
common-lisp
disassemble name-or-function => nil
name-or-function⇩ |
Either a function object, a lambda expression or a symbol with a function definition. |
The function disassemble
prints the machine code of a compiled function, to *standard-output*.
If the function denoted by name-or-function is not compiled then it is first compiled using the function compile. This happens if name-or-function is a lambda expression or an symbol naming an interpreted function.
An error is signaled if name-or-function is not suitable.
(disassemble #'(lambda (x) (progn x))) (disassemble 'cons) (disassemble #'map)
The output from disassemble
lacks useful information such as local and lexical variable names. The representation of integers or characters or Lisp objects in general is not easily readable without detailed knowledge of the internals of the Lisp system and the host machine instruction set.
disassemble in the Common Lisp HyperSpec
compile
compile-file
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:30