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 PAA15324; Tue, 1 Jul 2003 15:23:24 +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 PAA14769 for ; Tue, 1 Jul 2003 15:23:23 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h61DNLj26703; Tue, 1 Jul 2003 15:23:21 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA14657; Tue, 1 Jul 2003 15:23:20 +0200 (MET DST) Date: Tue, 1 Jul 2003 15:23:20 +0200 From: Xavier Leroy To: Christophe Michel Cc: caml-list@inria.fr Subject: Re: [Caml-list] architecture optimisation at compile time for ocaml 3.06 Message-ID: <20030701152320.B14262@pauillac.inria.fr> References: <20030701090701.92742.qmail@web41506.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20030701090701.92742.qmail@web41506.mail.yahoo.com>; from tofm2@yahoo.fr on Tue, Jul 01, 2003 at 11:07:01AM +0200 X-Spam: no; 0.00; caml-list:01 3.06:01 configuring:01 gcc:01 -wall:01 -wno-unused:01 -specific:01 compiler:01 ocaml:01 reentrant:01 configure:02 variant:02 native-code:02 compile:02 optimized:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > my system relies on an athlon XP2000+ and I would like to take > advantage of this architecture for speed purposes. > > but at configure times, the logs seem to be a little erratic: > > [root@msi ocaml]# ./configure -with-pthread > Configuring for a i686-pc-linux-gnu ... > > # ok, that's what I want... > (...) > > Configuration for the native-code compiler: > hardware architecture..... i386 > OS variant................ linux_elf > C compiler used........... gcc > options for compiling..... -Wall -Wno-unused > -D_FILE_OFFSET_BITS=64 -D_REENTRANT > > # so why now i386 The native-code OCaml compiler has only one code generator for the whole IA32 family. This code generator is called "i386" for historical reasons, but it is not particulary optimized for the Intel 386 processor. Actually, the generated code is targeted for efficient execution on the PPro-PII-PIII family, and appears to fit the Athlon quite well too. The next release will include a few P4-specific tricks that do not decrease performance on other processors. > can anyone help me in optimizing source for athlon ?? No :-) Quite frankly, given the subset of the IA32 instruction set that OCaml generates, I can't see any Athlon-specific optimizations that would be worth doing. - Xavier Leroy ------------------- 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