[LLVMdev] OCaml

Gordon Henriksen gordonhenriksen at mac.com
Sun Nov 25 04:24:22 PST 2007


On 2007-11-25, at 00:27, Jan Rehders wrote:

> I've written a compiler front end for a custom language in OCaml  
> which features compilation and an interactive toplevel. [...] When a  
> function is evaluated it is compiled and converted into text form,  
> sent to the toplevel, parsed again and fed into the jitting-VM.

Jan,

You could easily eliminate this round-trip using the bindings, which  
let you work directly with a Module*. Unfortunately, switching from  
text-generation to IR generation is major surgery.

— Gordon





More information about the llvm-dev mailing list