Skip to content

tcltk-depot/tbcload

Repository files navigation

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.

About

tbcload for Tcl 9.0

Resources

License

BSD-3-Clause, Unknown licenses found

Licenses found

BSD-3-Clause
LICENSE
Unknown
license.terms

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published