TOC PREV NEXT INDEX

 


Bytecode Files


TclPro Compiler creates an internal representation of the Tcl script using the Tcl bytecode compiler that is built into the Tcl core. It performs additional computations, and then emits a representation of the bytecode file to the output file. The output file itself is a simple Tcl script that loads the bytecode run-time package, tbcload, and then invokes a command in that package to load and run the bytecode files.

Bytecode files are just Tcl scripts. This allows you to use bytecodes anywhere you would use Tcl scripts. For example: you can source bytecode files. You can store a .tbc script in a Tcl variable, for example, by reading the .tbc file or reading it from a socket and then execute it using the eval command. You can use the .tbc scripts to drive protclsh83 or prowish83.




http://www.ajubasolutions.com
Voice: (650) 210-0100
Fax: (650) 210-0101
support@ajubasolutions.com
TOC PREV NEXT INDEX