Next Prev Up Top Contents Index

disassemble

Function
Summary

Views the machine code of a compiled function definition in assembly language form.

Package

common-lisp

Signature

disassemble name-or-function => byte-size

Arguments

name-or-function

Either a function-object, a lambda-expression or a symbol with a function definition. If the function in question is not compiled (i.e. a lambda-expression) then it is first compiled using the function compile .

Values

byte-size

The size of the compiled code in bytes. An error is signalled if the argument to disassemble is not suitable.

Description

This function views the machine-code of a compiled function definition in assembly language form.

Examples
(disassemble  #'(lambda (x) (progn x)))
(disassemble  'cons)
(disassemble  #'map)
Notes

The output from disassemble lacks useful information such as local and lexical variable names and symbol 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.

See also
compile
compile-file

LispWorks Reference Manual - 13 Jun 2003

Next Prev Up Top Contents Index