English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2001-10-23 (14:59)
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)?


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