Browse thread
[Caml-list] Executable size?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2003-11-15 (14:42) |
From: | skaller <skaller@o...> |
Subject: | Re: [Caml-list] Executable size? |
On Fri, 2003-11-14 at 06:58, John J Lee wrote: > On Thu, 13 Nov 2003, Eric Dahlman wrote: > > OK. Getting back to the original question again (how to reduce data to be > transferred over the network), both O'Caml and C statically link this > runtime stuff, right? So, why is O'Caml's "hello world" (compressed) 45k, > to C's 1 or 2k? Is that 43k the garbage collector? Or is it mostly that > O'Caml, in contrast to C, is linking in a bunch of stuff from its standard > library that isn't strictly required for "hello world"? Or something else > again?? > > Hope I'm not going round in circles here... The Ocaml equivalent of a C stub program which dynamically links to the C run time is bytecode. Ocaml native code compiler, at least on the x86, does not generate relocatable code, and so Ocaml library functions cannot be dynamically linked. [At present .. :] In my opinion, you best bet is to generate bytecode and distribute that. Your clients WILL have to download the bigger ocamlrun driver harness, but hopefully only once. ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners