From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr 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 E330EBC69 for ; Mon, 25 Jun 2007 19:04:47 +0200 (CEST) Received: from smtp27.orange.fr (smtp27.orange.fr [80.12.242.94]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5PH4lN4027042 for ; Mon, 25 Jun 2007 19:04:47 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2729.orange.fr (SMTP Server) with ESMTP id 6D1C61C00092 for ; Mon, 25 Jun 2007 19:04:47 +0200 (CEST) Received: from [192.168.1.162] (ALagny-153-1-15-87.w83-200.abo.wanadoo.fr [83.200.126.87]) by mwinf2729.orange.fr (SMTP Server) with ESMTP id 4BA5B1C0008D for ; Mon, 25 Jun 2007 19:04:47 +0200 (CEST) X-ME-UUID: 20070625170447309.4BA5B1C0008D@mwinf2729.orange.fr Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <200706251658.04780.jon@ffconsultancy.com> References: <467FE228.5040907@starynkevitch.net> <09C0AA9F-2021-49B5-89EB-B525A1757446@lrde.epita.fr> <200706251658.04780.jon@ffconsultancy.com> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <5DCFC41E-33A9-47A4-BFBE-3070297ABDB7@lrde.epita.fr> Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?Qu=F4c_Peyrot?= Subject: Re: [Caml-list] Function inlining and functor Date: Mon, 25 Jun 2007 19:04:46 +0200 To: caml-list@yquem.inria.fr X-Mailer: Apple Mail (2.752.2) X-Miltered: at concorde with ID 467FF5AF.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; lrde:01 inlining:01 functor:01 functor:01 compilation:01 ocaml:01 compiler:01 inlining:01 compiler:01 2007,:98 wrote:01 wrote:01 inline:01 caml-list:01 somewhere:06 On Jun 25, 2007, at 5:58 PM, Jon Harrop wrote: > On Monday 25 June 2007 16:50:03 Qu=F4c Peyrot wrote: >> But in the functor example, what is missing during the compilation to >> be able to inline it? > > The thing that is missing is the code in the OCaml compiler than =20 > inlines these > function calls. :-) > > This was one of the demands on the "what optimizations would we =20 > like" list > that was discussed here recently. I see, thanks, of course I have to concur with this conclusion as well ;) PS: I just tried to read the code for inlining in the compiler, to =20 have some idea how complicated it is, but of course, without much exposure I couldn't make sense of what I was reading. Is there any "Hacking" doc for the compiler somewhere? --=20 Best Regards, Qu=F4c