[Nottingham] Athlon64 gcc compile flags on Gentoo
Martin
martin at ml1.co.uk
Wed Feb 14 01:32:43 GMT 2007
Martin wrote:
> Folks,
>
> I'm about to try out Gentoo on a Athlon64 box (yes, that ASUS one now
> with updated BIOS)...
>
> Any recommendations for a good combination of compiler flags beyond the
> usual "-O3" (or "-Os" even)?
OK, fair comment there Michael about "-O3" possibly causing problems.
I've found a good summary on:
http://gentoo-wiki.com/CFLAGS
Interestingly, http://gentoo-wiki.com/Safe_Cflags#Athlon_64_.28AMD.29
lists:
Athlon 64 (AMD)
32 bit
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
64 bit
cpu family :15
model :4
model name :AMD Athlon(tm) 64 Processor 3200+
stepping :8
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
Note the lack of "-fomit-frame-pointer" that is more usual. Any reason
why for the Athlon64?
Cheers,
Martin
--
----------------
Martin Lomas
martin at ml1.co.uk
----------------
More information about the Nottingham
mailing list