Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
ocaml ast to machine at runtime
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-03-05 (16:26)
From: Joel Reymont <joelr1@g...>
Subject: Re: [Caml-list] Re: ocaml ast to machine at runtime

On Mar 5, 2009, at 3:55 PM, Sylvain Le Gall wrote:

> Why not using the LLVM OCaml binding? It is directly shipped with  
> So you can write the entire generator in OCaml...

I would love to use LLVM. My concern is the overhead of calling from  
LLVM into OCaml, though. The code I'll be generating will need to make  
use of a library of functions.

I'd prefer to stay in OCaml so this library will need to be wrapped in  
C, if my understanding is correct. This implies manual labor to code  
the wrappers and the runtime overhead to invoke them.

	Thanks, Joel

Mac, C++, OCaml