TOC PREV NEXT INDEX

 


Overview


Tcl code was traditionally interpreted on an as-needed basis. Before Tcl Version 8.0, the Tcl core did not include an internal compiler. Tcl Version 8.0 included a compiler; however, this compiler was internal to the interpreter, and compiled scripts could not be saved for later use. TclPro Compiler lets you compile scripts independently of execution, then store them so you can load and execute the bytecode file when you want to.

When you use TclPro Compiler, the bytecode file is stored as Tcl byte codes with the default extension .tbc. For example: if you compile the script foo.tcl with TclPro Compiler, the bytecode file is stored as foo.tbc. When you want to use the bytecode file, you can source it without spending the time to recompile foo.tcl.

You can distribute a bytecode file; this allows you to avoid shipping the Tcl source code, thus keeping your code secure. Bytecode files can also be used with TclPro Wrapper to create bundled applications that don't require special installation; see Chapter 7, "TclPro Wrapper."




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