Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] architecture optimisation at compile time for ocaml 3.06
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] architecture optimisation at compile time for ocaml 3.06
> 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