caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] How standalone are ocaml binaries?
@ 2001-10-23  9:05 Rafael 'Dido' Sevilla
  2001-10-23 14:57 ` Pixel
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael 'Dido' Sevilla @ 2001-10-23  9:05 UTC (permalink / raw)
  To: Caml List

How standalone are binaries created by ocaml?  Will an ocamlrun binary
for system X be sufficient to make an ocaml runtime system for byte
compiled files?  Will a native code-built ocaml program require any
other libraries or files or whatnot to run?

-- 
Rafael R. Sevilla <sevillar@team.ph.inter.net>   +63(2)   8177746 ext. 8311
Programmer, Inter.Net Philippines                +63(917) 4458925
http://dido.engr.internet.org.ph/                OpenPGP Key ID: 0x5CDA17D8
-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] How standalone are ocaml binaries?
  2001-10-23  9:05 [Caml-list] How standalone are ocaml binaries? Rafael 'Dido' Sevilla
@ 2001-10-23 14:57 ` Pixel
  0 siblings, 0 replies; 2+ messages in thread
From: Pixel @ 2001-10-23 14:57 UTC (permalink / raw)
  To: Rafael 'Dido' Sevilla; +Cc: Caml List

"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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-23 14:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-23  9:05 [Caml-list] How standalone are ocaml binaries? Rafael 'Dido' Sevilla
2001-10-23 14:57 ` Pixel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).