On Thursday 12 October 2006 12:34, "Selso DaSilva" <[EMAIL PROTECTED]> wrote about '[gentoo-user] compiling gentoo on P4 for a PII': > Is their a way to have gentoo > installed on a P4 but compiling for the PII/PIII?
The -march= value in your CFLAGS (on the machine building the image / packages / binaries ) should be the lowest common denominator for any CPU that will run the compiled binaries / install the built packages / receive the imaged HD. While the code generated under -march=pentium-4 might run on a PII, it's not guaranteed. Of course, CHOST should also be set to the common denominator but everything Intel above and including the PII is 686. You can use a -mtune= value in your CFLAGS to optimize intruction scheduling for a particular processor, generally the most common in your "fleet". The code generated under -mtune=pentium-4 will run on a PII. -mtune may make scheduling decisions that adversely affect performance on processors other than the one specified to improve performance on the chosen processor. -- "If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability." -- Gentoo Developer Ciaran McCreesh
pgptAJBq7iC92.pgp
Description: PGP signature

