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
_______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf