[LLVMdev] Suggestion for VM porting to LLVM

Jon Harrop jon at ffconsultancy.com
Sun Apr 5 00:53:38 PDT 2009


On Sunday 05 April 2009 08:34:21 Gabriele Farina wrote:
> Hi Mike,
>
> thanks for the suggestion. Do you know if there are any articles
> around that explains how to use LLVM to build a VM that should work
> like mine ?
> I've read something around (mostly source code) but a good article/doc
> will be perfect

There are a series of articles in the OCaml Journal describing the 
construction of a VM using LLVM:

http://ocamlnews.blogspot.com/2009/03/building-virtual-machine-with-llvm-part.html

The VM uses expression trees rather than bytecode. However, there is another 
article in the same journal describing the construction of a bytecode 
compiler using LLVM:

http://ocamlnews.blogspot.com/2008/09/writing-bytecode-compiler-using-llvm.html

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e



More information about the llvm-dev mailing list