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 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
Random Thought: |
45 |
--------------- |
46 |
Q: What do they call the alphabet in Arkansas? |
47 |
A: The impossible dream. |
48 |
|
49 |
-- |
50 |
gentoo-amd64@g.o mailing list |