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-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" <> 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:  FAQ:
To unsubscribe, mail  Archives: