Friday, 5 September 2008

Writing a bytecode compiler using LLVM

The OCaml Journal just published an article about the compilation of bytecodes:

"The Low-Level Virtual Machine (LLVM) provides the machinery to generate high-performance native code programmatically and on-demand. One of the most important applications of this technology is the Just In Time (JIT) compilation of bytecode intermediate representations into native code as found in Sun's Java Virtual Machine (JVM) and Microsoft's Common Language Runtime (CLR). This article describes how a simple bytecode interpreter can be developed into a JIT compiler using LLVM with relatively little effort..."

To read this article and more, subscribe to The OCaml Journal today!

No comments: