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.
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.
This package does not support Tcl 9.1 and later. Use the tbcx extension instead.
Copyright (c) 1999-2000 Ajuba Solutions
Copyright (c) 2018 ActiveState Software Inc.
Released under the BSD-3 license. See LICENSE file for details.