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.

Note

Standalone executables are currently missing several features, most notably package require.

guardian::compile ?-usage? ?-out exe? script
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.