caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <xavier.leroy@inria.fr>
To: Christophe Michel <tofm2@yahoo.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] architecture optimisation at compile time for ocaml 3.06
Date: Tue, 1 Jul 2003 15:23:20 +0200	[thread overview]
Message-ID: <20030701152320.B14262@pauillac.inria.fr> (raw)
In-Reply-To: <20030701090701.92742.qmail@web41506.mail.yahoo.com>; from tofm2@yahoo.fr on Tue, Jul 01, 2003 at 11:07:01AM +0200

> 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


  reply	other threads:[~2003-07-01 13:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-01  9:07 Christophe Michel
2003-07-01 13:23 ` Xavier Leroy [this message]
2003-07-01 15:08   ` Nickolay Kolchin-Semyonov
2003-07-01 15:30     ` Michel Christophe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030701152320.B14262@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=tofm2@yahoo.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).