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 VAA23654; Sun, 18 Aug 2002 21:06:17 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA23809 for ; Sun, 18 Aug 2002 21:06:16 +0200 (MET DST) Received: from hickory.cc.columbia.edu (hickory.cc.columbia.edu [128.59.59.202]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7IJ6Cr17345 for ; Sun, 18 Aug 2002 21:06:13 +0200 (MET DST) Received: from there (tw304h3.cpmc.columbia.edu [156.111.84.180]) by hickory.cc.columbia.edu (8.9.3/8.9.3) with SMTP id PAA00297 for ; Sun, 18 Aug 2002 15:06:11 -0400 (EDT) Message-Id: <200208181906.PAA00297@hickory.cc.columbia.edu> Content-Type: text/plain; charset="iso-8859-1" From: Oleg To: caml-list@inria.fr Subject: Re: [Caml-list] O'Caml vs C++: a little benchmark Date: Sun, 18 Aug 2002 15:06:35 -0400 X-Mailer: KMail [version 1.3.2] References: <200208181716.NAA10426@hickory.cc.columbia.edu> <15711.57520.125841.25102@beertje.william.bogus> In-Reply-To: <15711.57520.125841.25102@beertje.william.bogus> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sunday 18 August 2002 02:00 pm, William Chesters wrote: > the compiler [...] doesn't inline anything between > compilation units.   I was always curious about this. If I were to change Array module, but not its interface, ocamlopt would ask me to recompile (not just re-link) everything that depends on Array, which means that ocamlopt looks at Array _implementation_, while compiling (not linking) code that depends on it. In view of this, what stopped O'Caml creators from letting ocamlopt inline functions across module boundaries (especially if it's true that this could be responsible for a 100x speed boost)? > You would see this clearly in the assembler output > if you used ocamlopt -S. Is there a tutorial for reading those *.s files ocamlopt produces? Cheers Oleg ------------------- 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