From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id D75A3BC0C for ; Thu, 14 Dec 2006 14:24:45 +0100 (CET) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kBEDOilb027450 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 14 Dec 2006 14:24:45 +0100 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1GuqZW-0004Dm-00; Thu, 14 Dec 2006 13:24:26 +0000 Date: Thu, 14 Dec 2006 13:24:25 +0000 To: Hendrik Tews Cc: caml-list@inria.fr Subject: Re: [Caml-list] compiling ocaml into a shared object Message-ID: <20061214132425.GA15804@furbychan.cocan.org> References: <17793.19783.551299.652755@tandem.cs.ru.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17793.19783.551299.652755@tandem.cs.ru.nl> User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at discorde with ID 4581509C.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 0100,:01 hendrik:01 tews:01 ocaml:01 dlopen:01 bytecode:01 bytecode:01 modcaml:01 blog:98 blog:98 cvs:01 wrote:01 compile:01 compile:01 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!