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