Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AMD64 32bit GCC flags
View unanswered posts
View posts from last 24 hours

 
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Xealous
n00b
n00b


Joined: 07 Oct 2003
Posts: 13

PostPosted: Tue Mar 02, 2004 12:02 pm    Post subject: AMD64 32bit GCC flags Reply with quote

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
View user's profile Send private message
brad_mssw
n00b
n00b


Joined: 24 Dec 2003
Posts: 29
Location: Alachua, FL

PostPosted: Tue Mar 02, 2004 6:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Xealous
n00b
n00b


Joined: 07 Oct 2003
Posts: 13

PostPosted: Tue Mar 02, 2004 7:47 pm    Post subject: Reply with quote

Thanks for the help, everything is building fine from stage1. :)
Back to top
View user's profile Send private message
wclwong
n00b
n00b


Joined: 01 Mar 2004
Posts: 46
Location: Hong Kong

PostPosted: Wed Mar 03, 2004 5:40 am    Post subject: Reply with quote

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
View user's profile Send private message
astronic
n00b
n00b


Joined: 16 Aug 2003
Posts: 44
Location: Dortmund, Germany

PostPosted: Thu Mar 04, 2004 12:20 am    Post subject: Reply with quote

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
View user's profile Send private message
wclwong
n00b
n00b


Joined: 01 Mar 2004
Posts: 46
Location: Hong Kong

PostPosted: Mon Mar 08, 2004 9:31 am    Post subject: Reply with quote

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 :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum