Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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
> # 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 Archives:
Bug reports: FAQ:
Beginner's list: