Re: Possibility of adding -march=native to x86

Adrian Bunk
2007-10-25T20:20:32Z

On Thu, Oct 25, 2007 at 09:12:45PM +0100, Michael Lothian wrote:
> > The MPENTIUM4 option does not only set -march=pentium4, it also enables
> > several other options in arch/i386/Kconfig.cpu resulting in better
> > performance.
>
> How about an autodetect to set the right options here too using cpuid?
>
> With a warning of course that the code produced will be specifically
> for the native cpu that it's compiled on.

If you don't know or can figure out yourself the CPU you have, you'd
better not compile your own kernel...

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed