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] Executable size?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-11-12 (22:34)
From: Brian Hurt <bhurt@s...>
Subject: Re: [Caml-list] Executable size?
On Wed, 12 Nov 2003, Eric Dahlman wrote:

> John J Lee wrote:
> > On Wed, 12 Nov 2003, Brian Hurt wrote:
> >>Currying, exceptions, etc. also have small size penalties. 
> > OK.  I'm now enlightened on that point -- clearly, O'Caml's runtime is an
> > absolute requirement for an O'Caml program (unlike C/C++).
> C and C++ are not special in this regard, they just happen to be shipped 
> with the operating system.  On my box hello world links against 
> and which are 1,531,964 and 103,044 bytes respectively.

Ocaml uses at least some of these libraries itself (although not via
printf- I was wrong about that).  So, to be fair, you need to statically
link them into Ocaml binary as well- increasing it's size by half a
megabyte or so as well.

As a side note, I just finished downloading a ~10M compressed program 
(Adobe Acrobat reader) over a 56K baud modem.  Took about 45 minutes or 
so.  Modems teach you to be patient.  If not, I'll trot out long winded, 
boring stores about how as a kid I was forced to use a 300 baud modem to 
connect to the internet, through fourteen feet of snow, up hill, both 
ways!  :-)

(eagerly awaiting the IP Transmission over string and 2 tin cans stories 
from the good old days)

"Usenet is like a herd of performing elephants with diarrhea -- massive,
difficult to redirect, awe-inspiring, entertaining, and a source of
mind-boggling amounts of excrement when you least expect it."
                                - Gene Spafford 

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: