Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: skaller <skaller@o...>
Subject: Re: [Caml-list] Executable size?
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