From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA14059; Wed, 12 Nov 2003 23:34:15 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA14282 for ; Wed, 12 Nov 2003 23:34:13 +0100 (MET) Received: from herd.plethora.net (herd.plethora.net [205.166.146.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hACMYC119678 for ; Wed, 12 Nov 2003 23:34:12 +0100 (MET) Received: from bhurt.plethora.net (bhurt.plethora.net [205.166.146.49]) by herd.plethora.net (8.11.6/8.10.1) with ESMTP id hACMXhC13564; Wed, 12 Nov 2003 16:33:43 -0600 (CST) Date: Wed, 12 Nov 2003 17:32:48 -0600 (CST) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: Eric Dahlman cc: John J Lee , Ocaml Mailing List Subject: Re: [Caml-list] Executable size? In-Reply-To: <3FB2B050.8050901@atcorp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 currying:01 o'caml's:01 runtime:01 statically:01 adobe:99 fourteen:99 snow:99 eagerly:01 libc:01 ocaml:01 ocaml:01 nov:01 nov:01 binary:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 libc.so > and ld.so 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 Brian ------------------- 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