Version française
Home     About     Download     Resources     Contact us    
Browse thread
Estimating the size of the ocaml community
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] The boon of static type checking
On Sun, 2005-02-13 at 02:22, Brian Hurt wrote:
[inlining isn't usually a win]

I think it is language and context dependent.

Felix code (actual client program):

Without inlining:

$ wc -l hw.cpp hw.hpp
   14499 hw.cpp
    6818 hw.hpp
   21317 total

$ ls -l hw.o
-rw-r--r--  1 gchilds  unknown  831492 11 Feb 14:58 hw.o

With inlining

$ wc -l hw.cpp hw.hpp
    4264 hw.cpp
    1336 hw.hpp
    5600 total$ ls -l hw.o
-rw-r--r--  1 gchilds  unknown  116172 11 Feb 14:49 hw.o

4 -> 1 source code compression, 8 -> 1 object code
compression mainly due to inlining .. isn't a win??

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net