1 |
>> |
2 |
>> A useful pointer - thanks. But it seems to assume that we use Athlon XP |
3 |
>> processors (FLAGS="-O2 -march=athlon-xp -msse2 -pipe |
4 |
>> -fomit-frame-pointer"). My box has Opterons, so I assume I should |
5 |
>> substitute "-march=opteron", no? |
6 |
>> |
7 |
>> I've found explanations a bit thin on the ground as to what the C arch |
8 |
>> flag and the chost definition do. It's generally true that an |
9 |
>> explanation is far better than an instruction if you want to avoid |
10 |
>> supplementary questions :-) |
11 |
> |
12 |
> An excerpt from |
13 |
> http://www.gentoo.org/proj/en/base/amd64/technotes/index.xml?part=1&chap=3 |
14 |
> : |
15 |
> |
16 |
> "Unlike gcc 3.3, gcc 3.4 requires that you set -march. The most |
17 |
> conservative (and supported) CFLAGS can be set as show below: |
18 |
> ... |
19 |
> CFLAGS="-march=k8 -O2 -pipe" |
20 |
> ... |
21 |
> |
22 |
> Note: -march=k8 equals -march=athlon64 equals -march=opteron." |
23 |
> |
24 |
> Here is an excerpt from |
25 |
> http://www.gentoo.org/proj/en/base/amd64/technotes/index.xml?part=1&chap=4 |
26 |
> : |
27 |
> |
28 |
> "Once gcc-3.4 is released, you should be able to use -march=k8 to optimize |
29 |
> for the amd64, but it's not mentioned in the changelog if this is |
30 |
> available for 32-bit compilation as well." |
31 |
> |
32 |
> So for the 64-bit install, using k8, athlon64 or opteron will produce the |
33 |
> same binaries. For the 32-bit chroot, you should use athlon_xp as that is |
34 |
> the most conservative setting for running in 32 bit mode on the k8 |
35 |
> architecture. |
36 |
> |
37 |
A slight change to the above. The requirement to use athlon-xp in the |
38 |
32-bit chroot is not for bit correctness, it is because GCC 3.3 doesnt |
39 |
support amd64 specific -march setting. GCC 3.4 just recently went stable |
40 |
for x86, so in theory, after performing the migration to gcc 3.4 in the |
41 |
32bit chroot, it may be possible to use the k8 setting in 32bit land. |
42 |
|
43 |
|
44 |
Random Thought: |
45 |
--------------- |
46 |
You know you're using the computer too much when: |
47 |
u wake up with keyboard letters stuck to your forehead!! |
48 |
-- RedDawn |
49 |
|
50 |
-- |
51 |
gentoo-amd64@g.o mailing list |