7 About JIM-Tcl
OpenOCD includes a small “TCL Interpreter” known as JIM-TCL. You can
learn more about JIM here: http://jim.berlios.de
- JIM vrs TCL
JIM-TCL is a stripped down version of the well known Tcl language,
which can be found here: http://www.tcl.tk. JIM-Tcl has far
fewer features. JIM-Tcl is a single .C file and a single .H file and
impliments the basic TCL command set along. In contrast: Tcl 8.6 is a
4.2MEG zip file containing 1540 files.
- Missing Features
Our practice has been: Add/clone the Real TCL feature if/when
needed. We welcome JIM Tcl improvements, not bloat.
- Scripts
OpenOCD configuration scripts are JIM Tcl Scripts. OpenOCD's
command interpretor today (28/nov/2008) is a mixture of (newer)
JIM-Tcl commands, and (older) the orginal command interpretor.
- Commands
At the OpenOCD telnet command line (or via the GDB mon command) one
can type a Tcl for() loop, set variables, etc.
- Historical Note
JIM-Tcl was introduced to OpenOCD in Spring 2008.
- Need a Crash Course In TCL?
See: See TCL Crash Course.