Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Caml on intel-OSX
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jonathan Bryant <jtbryant@v...>
Subject: Re: [Caml-list] Caml on intel-OSX
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.


On Thu, 2005-06-09 at 12:20, 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:
> Archives:
> Beginner's list:
> Bug reports: