1 |
On Wed, 2005-12-07 at 19:35 +0000, Peter Humphrey wrote: |
2 |
> On Wed, 7 Dec 2005 10:44:01 -0600 (CST) |
3 |
> "Brett Johnson" <brett@××××.com> wrote: |
4 |
> |
5 |
> > Here is a good doc on how to set this up: |
6 |
> > |
7 |
> > http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 |
8 |
> |
9 |
> A useful pointer - thanks. But it seems to assume that we use Athlon XP |
10 |
> processors (FLAGS="-O2 -march=athlon-xp -msse2 -pipe |
11 |
> -fomit-frame-pointer"). My box has Opterons, so I assume I should |
12 |
> substitute "-march=opteron", no? |
13 |
> |
14 |
> I've found explanations a bit thin on the ground as to what the C arch |
15 |
> flag and the chost definition do. It's generally true that an |
16 |
> explanation is far better than an instruction if you want to avoid |
17 |
> supplementary questions :-) |
18 |
|
19 |
Yes, use -march=opteron (or athlon64, or k8, or nocona, or any of the |
20 |
other currently equivalent march flags in gcc). These do not imply |
21 |
64-bitness, that's determined by the compiler and the -m32/-m64 flags. |
22 |
|
23 |
Daniel |