Version 3 of llvmtcl

Updated 2010-05-21 15:48:12 by jos

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;

  1. Edit the Makefile to specify the paths to your Tcl and LLVM.
  2. Run make to build the extension.
  3. You'll also have to add LLVM's lib path to LD_LIBRARY_PATH.
  4. Run make test to check it the extension is working

Using the LLVM API

Transforming Tcl into LLVM bit code