From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 B8D4EBC58 for ; Thu, 9 Dec 2010 14:12:31 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtcBAG5kAE3B/BfSkWdsb2JhbACVTo46AQEBAQkLCgcRAybAEoVKBIp0gxQ X-IronPort-AV: E=Sophos;i="4.59,320,1288566000"; d="scan'208";a="91899590" Received: from msa01.smtpout.orange.fr (HELO msa.smtpout.orange.fr) ([193.252.23.210]) by mail1-smtp-roc.national.inria.fr with ESMTP; 09 Dec 2010 14:12:31 +0100 Received: from [192.168.1.63] ([83.199.16.217]) by mwinf5d01 with ME id h1CW1f00T4gzykb031CWsa; Thu, 09 Dec 2010 14:12:31 +0100 Message-ID: <4D00D5BE.4000407@frisch.fr> Date: Thu, 09 Dec 2010 14:12:30 +0100 From: Alain Frisch User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] Re: Pre-compiled ocaml binary for windows References: <20101203200646.GA7445@malaquias.DHCP-GERAL> <6C7D3CF0-5C04-4E51-939F-5086244DA055@inria.fr> <4CFD2259.6060200@gmail.com> <4CFDEE7E.8030000@frisch.fr> <4CFDFEA5.3000900@frisch.fr> <4CFE031A.6060801@frisch.fr> <20101209115400.GC6553@NANA.localdomain> In-Reply-To: <20101209115400.GC6553@NANA.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; frisch:01 frisch:01 pre-compiled:01 ocaml:01 ocamlopt:01 ocamlopt:01 -shared:01 ocamlrun:01 wrote:01 caml-list:01 alain:01 alain:01 modules:02 argument:02 binary:02 On 12/09/2010 12:54 PM, Mauricio Fernandez wrote: > This approach is not exactly convenient because the list of cmxs to be loaded > can easily get very long... I was thinking of replacing the call to "ocamlopt" used to build the main program (which requires external tools) with a call to "ocamlopt -shared" to build a single monolithic .cmxs file that contains all the modules for the program. So the generic loader would usually be called with a single argument (and it would probably be better to leave the other arguments so that they can be used by the program, as for "ocamlrun"). -- Alain