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 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 047A9BB84 for ; Sat, 27 Sep 2008 21:52:28 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArgDABAs3kjCpx6wiGdsb2JhbACTLwEBARUipXqBZw X-IronPort-AV: E=Sophos;i="4.33,322,1220220000"; d="scan'208";a="17835767" Received: from smtpmin.univ-orleans.fr (HELO min.univ-orleans.fr) ([194.167.30.176]) by mail1-smtp-roc.national.inria.fr with ESMTP; 27 Sep 2008 21:52:27 +0200 Received: from smtps.univ-orleans.fr (localhost [127.0.0.1]) by min.univ-orleans.fr (Postfix) with ESMTP id DF2BE12B4A0; Sat, 27 Sep 2008 21:52:27 +0200 (CEST) Received: from [192.168.0.12] (ras75-4-82-235-58-110.fbx.proxad.net [82.235.58.110]) by smtps.univ-orleans.fr (Postfix) with ESMTP id 4424836E60; Sat, 27 Sep 2008 21:52:31 +0200 (CEST) Subject: Re: [Caml-list] embedding ocaml into a windows app: need gcc? From: David Teller To: Joel Reymont Cc: O'Caml Mailing List In-Reply-To: <1253374D-FC84-4394-99E5-46C02D26C54C@gmail.com> References: <1253374D-FC84-4394-99E5-46C02D26C54C@gmail.com> Content-Type: text/plain Date: Sat, 27 Sep 2008 21:52:28 +0200 Message-Id: <1222545148.6449.16.camel@Blefuscu> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 gcc:01 univ-orleans:01 ocaml:01 dynlink:01 run-time:01 cheers:01 0100,:01 runtime:01 runtime:01 univ-orleans:01 lifo:01 liquidations:98 wrote:01 ideally:01 I don't know if this answers your question, but OCaml 3 now has Dynlink, i.e. a manner of dynamically loading OCaml modules from OCaml. So if you manage to get your code compiled at run-time, it shouldn't be too hard to load it. Cheers, David On Sat, 2008-09-27 at 20:27 +0100, Joel Reymont wrote: > Ideally, I would like to generate OCaml code at runtime and compile it > into something that can be loaded by a runtime of some sort. > > Compiling into a DLL would be ideal, is it possible? > > Are there are other options? -- David Teller-Rajchenbach Security of Distributed Systems http://www.univ-orleans.fr/lifo/Members/David.Teller Angry researcher: French Universities need reforms, but the LRU act brings liquidations.