Wednesday, 10 September 2008

LLVM tutorials ported to OCaml

Erick Tryzelaar has done a fantastic job translating the LLVM tutorials from C++ to OCaml. The fruits of his labor are available here.

This tutorial describes the implementation of a compiler for the "Kaleidoscope" language including lexing, parsing, basic code generation using LLVM, JIT compilation using LLVM and the introduction of control flow and mutable variables.

LLVM is one of the world's most exciting open source projects and the early development of comprehensive OCaml bindings to LLVM has fuelled a great deal of cross-pollination.


1 comment:

call said...

Thanks for the resource,really helpful :-)