Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] How standalone are ocaml binaries?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pixel <pixel@m...>
Subject: Re: [Caml-list] How standalone are ocaml binaries?
"Rafael 'Dido' Sevilla" <sevillar@team.ph.inter.net> writes:

> How standalone are binaries created by ocaml? 

completly standalone with "ocamlopt" or "ocamlc -custom"
(except for the standard C libraries, try ldd)

> Will an ocamlrun binary
> for system X be sufficient to make an ocaml runtime system for byte
> compiled files?

yes, everything is included in ocamlrun (the corollary is that if you want
things like Unix or Str or any extension, you have to build a custom ocamlrun)

The result is quite big binaries, and no possibility to share the common stuff
between them:

pixel@leia:~>ls -l /usr/bin/unison 
-rwxr-xr-x    1 root     root      1934396 Oct  5 21:56 /usr/bin/unison

For example, is there any way to build a shareable lablgtk? It should be
possible to achieve this using lablgtkrun? Would it big possible with
binary (ocamlopt)?

--
Pixel

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr