Wolfram Library Archive


All Collections Articles Books Conference Proceedings
Courseware Demos MathSource Technical Notes
Title Downloads

Decompiling Compiled Functions
Author

Terry Robb
Organization: RMIT University
Department: Department of Mathematics
Old MathSource #

0205-928
Revision date

1998-04-13
Description

Decompile[compiledFunction] decompiles a compiled function and returns a Function that would evaluate exactly the same as if the pseudocompiler were executing op codes. This is useful for seeing how the pseudocompiler works. A simple example is Decompile[Compile[x, x*Exp[x]]]. Registers named rB, rI, rR, and rC are used for holding boolean, integer, real, and complex datatypes. These registers can be traced using On[rI, rR] etc.
Subject

*Wolfram Technology > Kernel > Compiling
Keywords

General Utilities, Code generation, Programming, Debugging tools, Compiling, Trace, Efficiency, Decompile.m
Downloads Download Wolfram CDF Player

Download
Decompile.m (7.3 KB) - Mathematica package