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 p9VFSDVR005405 for ; Mon, 31 Oct 2011 16:28:13 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjYBAP+9rk5RZ90wkWdsb2JhbABDqTUiAQEBAQkLCwcUAyKBcgEBAQEDOk8CAQgOCgoUEDIlAgQBGod8BrNpiCFhBJQOkV8 X-IronPort-AV: E=Sophos;i="4.69,432,1315173600"; d="scan'208";a="127275459" Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]) by mail1-smtp-roc.national.inria.fr with ESMTP; 31 Oct 2011 16:28:07 +0100 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20111031152806.DWND21463.mtaout02-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com>; Mon, 31 Oct 2011 15:28:06 +0000 Received: from romulus.metastack.com ([81.102.132.77]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20111031152806.TUJT24017.aamtaout03-winn.ispmail.ntl.com@romulus.metastack.com>; Mon, 31 Oct 2011 15:28:06 +0000 Received: from remus.metastack.local ([172.16.0.1]) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id p9VFRs6x000832 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 31 Oct 2011 15:27:54 GMT Received: from Remus.metastack.local ([fe80::547c:3c42:e1da:eda2]) by Remus.metastack.local ([fe80::547c:3c42:e1da:eda2%10]) with mapi id 14.01.0323.003; Mon, 31 Oct 2011 15:27:54 +0000 From: David Allsopp To: Andreea Costea , "caml-list@inria.fr" Thread-Topic: [Caml-list] Standalone executable Thread-Index: AQHMl+EjuavSZLrmJUes0zXe0AvRc5WWkqmQ Date: Mon, 31 Oct 2011 15:27:52 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.0.7] Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 81.102.132.77 X-Cloudmark-Analysis: v=1.1 cv=JvdXmxIgLJv2/GthKqHpGJEEHukvLcvELVXUanXFreg= c=1 sm=0 a=40hZHaDki8MA:10 a=ykgQOvrLPRkA:10 a=cTs9vV391PwA:10 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:10 a=ZOzjf2MOAAAA:8 a=0wh9_d6ZZfqaBWSdj8QA:9 a=CjuIK1q_8ugA:10 a=1WF1XFRdlwUA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p9VFSDVR005405 Subject: RE: [Caml-list] Standalone executable Andreea Costea wrote: > For some days now, I was searching to see if there is any way you can build > an executable from an OCaml project, that can later be run from another > machine that doesn't have OCaml installed on (not even the runtime system). > Same type of Unix based OS, though. Compile it with ocamlopt instead of ocamlc - Chapter 11 of the manual (which it's a little surprising you hadn't got to, if you've been looking for a few days)... http://caml.inria.fr/pub/docs/manual-ocaml/manual025.html "This chapter describes the OCaml high-performance native-code compiler ocamlopt, which compiles Caml source files to native code object files and link these object files to produce standalone executables." David