From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 131ABBC8B for ; Sat, 12 Feb 2005 18:06:27 +0100 (CET) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j1CH6Oem004193 for ; Sat, 12 Feb 2005 18:06:26 +0100 Received: from [192.168.1.200] (ppp212-197.lns2.syd3.internode.on.net [203.122.212.197]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id j1CH69mQ060952; Sun, 13 Feb 2005 03:36:11 +1030 (CST) Subject: Re: [Caml-list] The boon of static type checking From: skaller Reply-To: skaller@users.sourceforge.net To: Brian Hurt Cc: Michael Walter , Jon , caml-list@yquem.inria.fr In-Reply-To: References: Content-Type: text/plain Organization: Message-Id: <1108227959.2584.70.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 13 Feb 2005 04:06:08 +1100 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 420E3791.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 sourceforge:01 wrote:01 inlining:01 inlining:01 cpp:01 cpp:01 glebe:01 061:98 nsw:01 checking:01 snail:02 2037:02 dependent:02 programming:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: 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