Version française
Home     About     Download     Resources     Contact us    
Browse thread
compiling ocaml into a shared object
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] compiling ocaml into a shared object
On Thu, Dec 14, 2006 at 02:10:31PM +0100, Hendrik Tews wrote:
> could somebody tell me how to compile ocaml sources into a shared
> object that can be loaded with dlopen? The following message
> seems to tell me that this is possible:

It's tricky, but I managed to compile the bytecode interpreter and
bytecode into a shared object.  See the source for mod_caml.so:

http://download.savannah.nongnu.org/releases/modcaml/
(actually there's a much newer version in CVS, but I don't think the
linking issue changed at all).

For AMD64, see also:

http://merjis.com/developers/mod_caml/amd64

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Internet Marketing and AdWords courses - http://merjis.com/courses - NEW!
Merjis blog - http://blog.merjis.com - NEW!