Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Compiling Binaries

Note

This is an upcoming feature in Guardian Tcl 0.6.

Guardian Tcl supports building stand-alone executables containing both the Tcl interpreter and a Tcl script. This functionality is exposed through the guardian::compile Tcl command. It is intended to function somewhat like Tclkits for OG Tcl, but is more limited and based on Jim Tcl with the Guardian extensions.

guardian::compile ?-usage? ?-out exe? script ?packages?
Compile script (the path to a Tcl file, not a Tcl script string) into a standalone executable. If -out is not specified, the output name is derived from the script name. -usage enables CLI parsing based on Usage specifications embedded in the script. Additional Tcl source files named as packages are included in the compiled executable and can be accessed with package require.