critcl - Introduction To CriTcl
Be welcome to the C Runtime In Tcl (short: CriTcl), a system for embedding and using C code from within Tcl scripts.
Adding C code to Tcl/Tk has never been easier.
Improve performance by rewriting the performance bottlenecks in C.
Import the functionality of shared libraries into Tcl scripts.
CriTcl started life as an experiment by Jean-Claude Wippler and was a self-contained Tcl package to build C code into a Tcl/Tk extension on the fly. It was somewhat inspired by Brian Ingerson's Inline for Perl, but is considerably more lightweight.
It is for the last 5% to 10% when pure Tcl, which does go a long way, is not sufficient anymore. I.e. for
when the last bits of performance are needed,
access to 3rd party libraries,
hiding critical pieces of your library or application, and
simply needing features provided only by C.
To make the reader's topics of interest easy to find this documentation is roughly organized by Quadrants, i.e.
| Study | Work ----------- + --------------- + ----------------- Practical | Tutorials | How-To Guides | (Learning) | (Problem solving) ----------- + --------------- + ----------------- Theoretical | Explanations | References | (Understanding) | (Knowledge)
Note: At this point in time the documentation consists mainly of references, and a few how-to guides. Tutorials and Explanations are in need of expansion, this is planned.
This section is currently empty.
This section is currently empty.
How To Use CriTcl - A light introduction through examples.
Jean Claude Wippler, Steve Landers, Andreas Kupries
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report them at https://github.com/andreas-kupries/critcl/issues. Ideas for enhancements you may have for either package, application, and/or the documentation are also very welcome and should be reported at https://github.com/andreas-kupries/critcl/issues as well.
C code, Embedded C Code, calling C code from Tcl, code generator, compile & run, compiler, dynamic code generation, dynamic compilation, generate package, linker, on demand compilation, on-the-fly compilation
Glueing/Embedded C code
Copyright © Jean-Claude Wippler
Copyright © Steve Landers
Copyright © 2011-2024 Andreas Kupries