From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 6E23FBCB0 for ; Fri, 10 Jun 2005 01:44:11 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j59NiBt9018566 for ; Fri, 10 Jun 2005 01:44:11 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA27312 for ; Fri, 10 Jun 2005 01:44:10 +0200 (MET DST) Received: from mailx.valdosta.edu (mailx.valdosta.edu [168.18.130.251]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j59Ni9lv012954 for ; Fri, 10 Jun 2005 01:44:10 +0200 Received: from blazemail.valdosta.edu (valdosta.edu [168.18.130.208]) by mailx.valdosta.edu (8.13.4/8.13.4) with ESMTP id j59Ni8vu015236 for ; Thu, 9 Jun 2005 19:44:08 -0400 (EDT) (envelope-from jtbryant@valdosta.edu) Received: from chunky.valdosta.edu (chunky.valdosta.edu [168.18.130.102]) by blazemail.valdosta.edu (iPlanet Messaging Server 5.2 HotFix 2.04 (built Feb 8 2005)) with ESMTP id <0IHU002FMCLKUL@blazemail.valdosta.edu> for caml-list@inria.fr; Thu, 09 Jun 2005 19:44:08 -0400 (EDT) Date: Thu, 09 Jun 2005 19:44:08 -0400 From: Jonathan Bryant Subject: Re: [Caml-list] Caml on intel-OSX In-reply-to: <36973.131.254.50.45.1118334009.squirrel@mail.irisa.fr> To: caml-list@inria.fr Message-id: <1118360648.17936.15.camel@chunky.valdosta.edu> MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.5.2 Content-type: text/plain Content-transfer-encoding: 7BIT References: <1118295206.7145.165.camel@rosella.wigram> <0908894eeba2802d8441ea3476c67c36@wetware.com> <1118330851.8693.10.camel@rosella.wigram> <36973.131.254.50.45.1118334009.squirrel@mail.irisa.fr> X-PMX-Version: 5.0.1.144180, Antispam-Engine: 2.0.3.2, Antispam-Data: 2005.6.9.29 X-Miltered: at concorde with ID 42A8D44B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42A8D449.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocamlc:01 bytecode:01 slighly:01 compiler:01 mistaken:01 ocaml:01 ocaml:01 irisa:01 woodyatt:01 bytecode:01 binary:01 ocamlrun:01 ocamlopt:01 compiler:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: ocamlc with the "-custon" flag makes standalone bytecode programs (it embeds a copy of the ZAM, which it generates a slighly larger executable). But, like was was said earlier, any external libraries referenced (Dbm, etc.) would have to be included. I think they can be linked in using a flag, but I don't know. I do know that any external non-caml libraries (.a & .so files) are not linked in. I almost exclusively use the native code compiler and may be mistaken, so check the documentation. Check out the O'Really [sic] OCaml book ("Developing Applications with OCaml") on the OCaml website: it has a pretty decently good discussion of this. --Jonathan On Thu, 2005-06-09 at 12:20, padiolea@irisa.fr wrote: > > On Thu, 2005-06-09 at 07:00 -0700, james woodyatt wrote: > >> On 08 Jun 2005, at 22:33, John Skaller wrote: > >> > > >> > And a dumb question .. will a bytecode Ocaml program > >> > just run on any machine provided a single binary, > >> > ocamlrun, is installed and accessible? > >> > >> You probably want all the ocaml tools to be built as universal binaries > >> and you probably also want the ocamlopt compiler to be able to produce > >> universal binaries. I would expect that will require some effort from > >> the Caml Team at INRIA. > > > > Lol! no, it is a simple question. Can I make a bytecode program > > and just ship it an expect it to run? No. So what else is required? > > I guess that if your bytecode program require some external libraries, > such as for instance if you do a "open Dbm" then you must > have too this library. > I think that ocamlrun only include code to handle the Pervasive > library. > > > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs