View previous topic :: View next topic |
Author |
Message |
Xealous n00b
Joined: 07 Oct 2003 Posts: 13
|
Posted: Tue Mar 02, 2004 12:02 pm Post subject: AMD64 32bit GCC flags |
|
|
I have been trying to get some documentation on 32-bit options for my AMD64, but have had no luck. My question is: can a person use -march=athlon-xp in 32-bit mode with an Athlon64 3400+?
Or would it be better to use: -march=i686 -mmmx -msse2 -mfpmath=sse -pipe -O3?
Any help is much appreciated. |
|
Back to top |
|
|
brad_mssw n00b
Joined: 24 Dec 2003 Posts: 29 Location: Alachua, FL
|
Posted: Tue Mar 02, 2004 6:12 pm Post subject: |
|
|
if you're just wanting 32bit flags, use
-march=athlon-xp -msse -msse2 -mfpmath=sse -O2 -pipe
But only do that in 32bit mode!
GCC 3.4 will have -march=k8 which will default to something
similar.
-Brad House
AMD64 Project Lead
brad_mssw@gentoo.org |
|
Back to top |
|
|
Xealous n00b
Joined: 07 Oct 2003 Posts: 13
|
Posted: Tue Mar 02, 2004 7:47 pm Post subject: |
|
|
Thanks for the help, everything is building fine from stage1. |
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Wed Mar 03, 2004 5:40 am Post subject: |
|
|
brad_mssw wrote: | if you're just wanting 32bit flags, use
-march=athlon-xp -msse -msse2 -mfpmath=sse -O2 -pipe
But only do that in 32bit mode!
GCC 3.4 will have -march=k8 which will default to something
similar.
-Brad House
AMD64 Project Lead
brad_mssw@gentoo.org |
hi Brad,
i am a complete newbie and may i know which -march should be for a AMD64 +3000 CPU, please !!!
Wall |
|
Back to top |
|
|
astronic n00b
Joined: 16 Aug 2003 Posts: 44 Location: Dortmund, Germany
|
Posted: Thu Mar 04, 2004 12:20 am Post subject: |
|
|
brad_mssw wrote: | i am a complete newbie and may i know which -march should be for a AMD64 +3000 CPU, please !!! |
As has been said, you don't need to march anywhere for 64bit compilations (since there aren't that much AMD64-CPUs out there beside those from AMD). If you compile 32bit (for example in your 32bit chroot-environment) you can march for athlon-xp.
I bought my Athlon64 a few hours ago and my old Athlon XP optimized 32bit Gentoo installation was the only OS which booted after the mainboard change. My new 64bit installation is compiling X right now, everthing worked really smooth until now.
HTH,
Stefan. |
|
Back to top |
|
|
wclwong n00b
Joined: 01 Mar 2004 Posts: 46 Location: Hong Kong
|
Posted: Mon Mar 08, 2004 9:31 am Post subject: |
|
|
astronic wrote: | brad_mssw wrote: | i am a complete newbie and may i know which -march should be for a AMD64 +3000 CPU, please !!! |
As has been said, you don't need to march anywhere for 64bit compilations (since there aren't that much AMD64-CPUs out there beside those from AMD). If you compile 32bit (for example in your 32bit chroot-environment) you can march for athlon-xp.
I bought my Athlon64 a few hours ago and my old Athlon XP optimized 32bit Gentoo installation was the only OS which booted after the mainboard change. My new 64bit installation is compiling X right now, everthing worked really smooth until now.
HTH,
Stefan. |
oic, thanks |
|
Back to top |
|
|
|