Re: Looking for processor specific performance CFLAGS macro

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

 



Yasunari Tosa <tosa@xxxxxxxxxxxxxxxxxxx> writes:
>
> I'm looking for autoconf macro to set processor specific performance CFLAGS.

GMP does some hairy stuff to establish good defaults.

> Here I restrict myself only to Linux at this point.

It must be difficult using just a kernel, perhaps you mean GNU/Linux.

> I initially thought to use "uname -p", but this returns i686 for P4 and
> surprizing "unknown" for Redhat 7.3 with smp kernel.

On x86, running the cpuid insn is good.

But remember probing the build system is wrong when cross-compiling,
so you'll want a way to specify manually as well as probing.

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

The "machine" command in recent versions, or the NXGetLocalArchInfo()
call.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux