autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Looking for processor specific performance CFLAGS macro


From: Yasunari Tosa
Subject: Looking for processor specific performance CFLAGS macro
Date: Fri, 18 Jun 2004 16:17:08 -0400
User-agent: Mozilla Thunderbird 0.5 (X11/20040208)

Hi,

I'm looking for autoconf macro to set processor specific performance CFLAGS.

The fact that gcc3 now had processor specific optimization flag: -march= -mfpmath=.
Adding these flags make a big difference in performance for some codes.

Here I restrict myself only to Linux at this point.

I initially thought to use "uname -p", but this returns i686 for P4 and
surprizing "unknown" for Redhat 7.3 with smp kernel.
Next what I tried was to use /proc/cpuinfo.  This returns, e.g.

model name      : Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz
model name      : Pentium III (Coppermine)
model name      : AMD Athlon(TM) MP 2000+
model name      : AMD Opteron(tm) Processor 246

which is rather away from the one expected by gcc:

pentium4, pentium3, athlon-mp, opteron.

I have no idea about how I can get this info from MacOSX.

Thank you.

Tosa






reply via email to

[Prev in Thread] Current Thread [Next in Thread]