Wize /
Compiler
Search:  

Tcl Compiler

A Tcl Compiler is built-in to Wize to support compiling applications to byte-code. Sometimes compiling is desirable or necessary for reasons of security or to protect proprietary code. There is, however, little performance gain from compiling.

Files can be compiled from the command line like so:

 wize /zvfs/wiz/eval.tcl "compiler::compile script.tcl; exit"

This will produce the output file script.tbc which can be executed as normal:

 wize script.tbc

© 2008 Peter MacDonald

Page last modified on November 18, 2009, at 07:55 AM