Next Previous Up Top Contents Index

4 The COMMON-LISP Package

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 functioncompile.

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 fromdisassemble 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 - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker