Re: Noob question. Why is the for-pentium4 kernel built with-march=i686 ?

From: Jan Engelhardt
Date: Tue Jul 19 2005 - 12:53:56 EST


>Hello,
>
>If I set the CPU type to be amd64 in kernel config, the kernel is built
>with -march=k8. If I set it to be k6, the kernel is built with
>-march=k6. If I set the CPU type to be Pentium4, the kernel is built
>with -march=i686 -mtune=pentium4. Why is not the for-P4 kernel built
>with -march=pentium4 ?
>I tried building the kernel with -march=pentium4 for the sake of
>experiment and got no ill effects.

-march= specifies the instruction set, -mcpu= / -mtune= the tuning factor.
Maybe it is that the instruction set is the same on i686 and
pentium4. cmov for example is not present in k6, and k8 is something
completely different at all.


Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/