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 VAA08072; Wed, 12 Nov 2003 21:30:37 +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 VAA08308 for ; Wed, 12 Nov 2003 21:30:36 +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 hACKUZ110627 for ; Wed, 12 Nov 2003 21:30:35 +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 hACKUGC07244; Wed, 12 Nov 2003 14:30:17 -0600 (CST) Date: Wed, 12 Nov 2003 15:29:22 -0600 (CST) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: Karl Zilles cc: Richard Jones , John J Lee , Subject: Re: [Caml-list] Executable size? In-Reply-To: <3FB28443.9040708@1969.ws> 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 debugging:01 cygwin:01 rant:01 printf:01 printf:01 ocamlopt:01 stdio:01 gcc:01 -os:01 byte:01 byte:01 int:01 nov:01 nov:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, 12 Nov 2003, Karl Zilles wrote: > Don't forget to strip out debugging info. When I did that on cygwin I > dropped from 165K to 100K. > > Good point. Continuing on my pedantic rant: $ cat temp2.ml let _ = Printf.printf "Hello, world!\n";; $ ocamlopt -o temp2 temp2.ml $ ls -l temp2 -rwxrwxr-x 1 bhurt bhurt 150448 Nov 12 15:19 temp2 $ strip temp2 $ ls -l temp2 -rwxrwxr-x 1 bhurt bhurt 101500 Nov 12 15:24 temp2 $ bzip2 -9v temp2 temp2: 2.287:1, 3.498 bits/byte, 56.27% saved, 101500 in, 44387 out. $ ls -l temp2.bz2 -rwxrwxr-x 1 bhurt bhurt 44387 Nov 12 15:24 temp2.bz2 $ cat temp3.c #include int main (void) { puts("Hello, world!"); return 0; } $ gcc -Os -o temp3 temp3.c $ ls -l temp3 -rwxrwxr-x 1 bhurt bhurt 11228 Nov 12 15:27 temp3 $ strip temp3 $ ls -l temp3 -rwxrwxr-x 1 bhurt bhurt 2768 Nov 12 15:27 temp3 $ bzip2 -9v temp3 temp3: 2.009:1, 3.983 bits/byte, 50.22% saved, 2768 in, 1378 out. $ ls -l temp3.bz2 -rwxrwxr-x 1 bhurt bhurt 1378 Nov 12 15:27 temp3.bz2 $ -- "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