Version 0 of disassemble

Updated 2008-08-19 22:17:47 by dkf

Syntax:

tcl::unsupported::disassemble proc procName
tcl::unsupported::disassemble lambda lambdaTerm
tcl::unsupported::disassemble script script

Usage:

Disassembles the bytecode of a procedure, lambda/apply term or general script and returns the disassembly. The format is formally undefined, but is really an exposure of the disassembler built in since 8.0 when compiling with the correct options and can probably be read by anyone who has ever read any assembly code without much difficulty. Understanding the bytecodes requires reading tclCompile.c and (possibly) tclExecute.c. Will not disassemble anything created by tbcload.


Category Command [Category Internals