From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q28GJh9o028419 for ; Thu, 8 Mar 2012 17:19:44 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAGHbWE/U4xEKk2dsb2JhbABCgxaBVlavaCIBAQEBBwsLCRQDJIILAQUMF1YQCQIaAiYCAlcGEwmIBQesd4pJgS+OKYEWBI1HjWONFw X-IronPort-AV: E=Sophos;i="4.73,552,1325458800"; d="scan'208";a="148282433" Received: from moutng.kundenserver.de ([212.227.17.10]) by mail1-smtp-roc.national.inria.fr with ESMTP; 08 Mar 2012 17:19:38 +0100 Received: from office1.lan.sumadev.de (dslb-084-059-064-196.pools.arcor-ip.net [84.59.64.196]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MdWxQ-1RiTqF3YWi-00PhSC; Thu, 08 Mar 2012 17:19:36 +0100 Received: from [192.168.5.106] (dslb-084-059-064-196.pools.arcor-ip.net [84.59.64.196]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id 83646C00CF; Thu, 8 Mar 2012 17:19:35 +0100 (CET) From: Gerd Stolpmann To: =?ISO-8859-1?Q?J=E9r=E9mie?= Dimino Cc: Daniel =?ISO-8859-1?Q?B=FCnzli?= , caml-list In-Reply-To: <20120308170947.4847d3b3@caladan.esterel-technologies.com> References: <1991A512A37E49ACA5AAD30A38D628BF@erratique.ch> <20120308170947.4847d3b3@caladan.esterel-technologies.com> Content-Type: text/plain; charset="UTF-8" Date: Thu, 08 Mar 2012 17:19:35 +0100 Message-ID: <1331223575.2826.288.camel@thinkpad> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 X-Provags-ID: V02:K0:jnVqyeGBjCbSKNIishElZzxtOcywL43SgRMgfOIUjW1 7IBSveSAWeV0FSOEktcC84gbEey4DFMobndhksOLuP4qBG0z+y WbQf0vsPDoPe5hJNszl82BwcK91pPC2/XId0L30MljhO3hQ3fb vb0+OpcaRghXVTu3XLKPKe64maZCnyFrLJpabuIkJpIvwJ9+6T HQFKkn7xeb7S7kcGfeAHbeHjAk8PF8gvE+LcBy/frOHiDqpbw7 nSpsp+IB18BzzREvkiwbRYHyqtsTZa69a2NE+c0d72CvMSV16M trpCnp+WvCEZnb6cT+88qODCVY5u+mR5TIU/RBOdQJlgZHB+MH 4IzNSBCo4REds4unza1tvF0UySJ7jd4f2AU1TTVUL Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id q28GJh9o028419 Subject: Re: [Caml-list] oasis packaging questions Am Donnerstag, den 08.03.2012, 17:09 +0100 schrieb Jérémie Dimino: > Le Thu, 8 Mar 2012 01:26:38 +0100, > Daniel Bünzli a écrit : > > > 1) All the packages I distribute are made of a single module. For now > > these were just installed as .cmo .cmx .cmxs. Now it seems oasis > > forces me to create a .mllib even if I have only one module. Is that > > correct ? > > Note that in general it is better to install a cma/cmxa, even if your > library has only one module. The reason is that when building an > executable, cmo/cmx files passed on the command line are always linked, > while unused units of cma/cmxa files are not (unless you specify > -linkall). Right. Just one refinement: if you also install the cmx _in addition to_ the cmxa, you enable cross-module inlining for this particular module. This is completely optional. I usually do it only when I think it makes sense. (Cannot comment on how this is handled in oasis.) Gerd > -- > Jérémie > > -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de Creator of GODI and camlcity.org. Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de *** Searching for new projects! Need consulting for system *** programming in Ocaml? Gerd Stolpmann can help you. ------------------------------------------------------------