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
[Caml-list] Writing a JIT compiler
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-06-25 (17:04)
From: Daniel_Bünzli <daniel.buenzli@e...>
Subject: Re: [Caml-list] Writing a JIT compiler

Le 25 juin 04, à 17:55, Basile Starynkevitch [local] a écrit :

> I suggested him to generate C code (calling the
> appropriate OCaml caml_callback* when needed to apply functions) and
> then compile it (by forking a gcc command) as a shared library, and
> then dlopen it and using dlsym to get the function pointer and at last
> call it. You'll have to dlclose the library after using it. In
> principle, it is like using the Dynlink module, but ugly details
> differ.

If I remember well, Christophe Raffalli adopts a similar technique in 
his program GlSurf. You may want to have a look to his (LGPL'd) code 


[1] <>

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: