Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.14 KB

File metadata and controls

38 lines (28 loc) · 1.14 KB

tbcload

The tbcload package implements commands to source Tcl byte code generated by the tclcompiler package.

As basic usage example, evaluating the following in a Tcl shell will generate a hello.tbc file containing the byte code for the Tcl script in hello.tcl.

package require tclcompiler
compiler::compile hello.tcl

The generated hello.tbc file can then be loaded with

package require tbcload
source hello.tbc

For detailed usage, limitations and other information, see the Chapter 6 of the TclPro User's Guide. Although dated, most of the information there is still applicable.

Tcl version support

The package supports Tcl 8.6 and Tcl 9.0. However, files compiled for Tcl 8 cannot be loaded into a Tcl 9 interpreter and vice versa. Further, files compiled with tclcompiler versions prior to 2.0 are untested and unsupported.

License and Copyright

Copyright (c) 1999-2000 Ajuba Solutions
Copyright (c) 2018 ActiveState Software Inc.
Released under the BSD-3 license. See LICENSE file for details.