jdc 21-may-2010 To learn LLVM I made a wrapper got LLVM's C API. This wrapper is available at: http://github.com/jdc8/llvmtcl
Building the wrapper
The wrapper uses LLVM's C API as found in LLVM's header file Core.h in include\llvm-c.
Requirements:
- LLVM 2.7
- Tcl 8.5 (most test have been done with Tcl HEAD)
There is a Makefile to build the extension;
- Edit the Makefile to specify the paths to your Tcl and LLVM.
- Run make to build the extension.
- You'll also have to add LLVM's lib path to LD_LIBRARY_PATH.
- Run make test to check it the extension is working
Using the LLVM API
Transforming Tcl into LLVM bit code