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 OAA10881; Sat, 15 Nov 2003 14:10:47 +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 OAA12232 for ; Sat, 15 Nov 2003 14:10:46 +0100 (MET) Received: from mail2.tpgi.com.au (mail.tpgi.com.au [203.12.160.58]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hAFDAh114733 for ; Sat, 15 Nov 2003 14:10:44 +0100 (MET) Received: from 203-219-16-195-syd-ts21-2600.tpgi.com.au (203-219-16-195-syd-ts21-2600.tpgi.com.au [203.219.16.195]) by mail2.tpgi.com.au (8.12.10/8.12.10) with ESMTP id hAFDAcd4006358; Sun, 16 Nov 2003 00:10:40 +1100 Subject: Re: [Caml-list] Executable size? From: skaller Reply-To: skaller@ozemail.com.au To: John J Lee Cc: caml-list@inria.fr In-Reply-To: References: Content-Type: text/plain Message-Id: <1068898191.25869.39.camel@pelican> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 15 Nov 2003 23:09:52 +1100 Content-Transfer-Encoding: 7bit X-Kaspersky-Antivirus: Passed X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 ozemail:01 haskell:01 872:99 920:99 lookups:01 compiler:01 nov:01 nov:01 rewriting:02 native:02 modules:02 o'caml:02 executable:03 executable:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, 2003-11-13 at 03:14, John J Lee wrote: > How does O'Caml compare with languages like Haskell (ghc), C and C++ for > executable size? For x86, native code compiler: 520 -rwxrwxr-x 1 skaller skaller 525379 Nov 15 02:18 flxl 800 -rwxrwxr-x 1 skaller skaller 812242 Nov 15 02:18 flxp 872 -rwxrwxr-x 1 skaller skaller 887235 Nov 15 02:18 flxm 920 -rwxrwxr-x 1 skaller skaller 934253 Nov 15 02:18 flxd 1184 -rwxrwxr-x 1 skaller skaller 1205490 Nov 15 02:18 flxb 1368 -rwxrwxr-x 1 skaller skaller 1393890 Nov 15 02:18 flxg Each program listed is the same as the previous one, but adds a few more modules: flxl is a lexer, flxp lex and parse, flxm macro processes, flxd also does some desugaring (term rewriting), flxb binds code (does lookups) and flxg generates code (C++ text is output). Although not evident from this data, the sizes are roughly proportional to the input text. A count on the source code is: 31427 116463 835506 total [which includes regeression tests, documentation etc ..] ------------------- 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