Critcl can also be used to generate a dynamically loadable shared library, so the code can be run on machines without a C compiler present.
If we wanted to build a small shared library containing just the above math functions, we could create a file mymath.tcl containing the Critcl declarations, and then build it using:
We are left with a mymath shared library (in this case a MacOS X .dylib, but on Windows a .dll and on most other Unices a .so) which we can invoke using: