Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AMD AthlonMP optimizations?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
trapni
Retired Dev
Retired Dev


Joined: 16 May 2002
Posts: 251
Location: Germany/Berlin

PostPosted: Fri May 17, 2002 12:29 am    Post subject: AMD AthlonMP optimizations? Reply with quote

Hi all,

I am working on an AMD AthlonMP dual processor machine and recently moved to Gentoo on my/that desktop. I know that this machine is i686 compatible, but does there exist some special optimization features?

Well, my /proc/cpuinfo tells me the following (for cpu 0 and cpu 1):
Code:
vendor_id     : AuthenticAMD
cpu family    : 6
model         : 6
model name    : AMD Athlon(tm) MP Processor 1500+
stepping      : 2
cpu MHz       : 1333.398
cache size    : 256 KB
fdiv bug      : no
hlt_bug       : no
f00f_bug      : no
coma_bug      : no
fpu           : yes
fpu_excaption : yes
cpuid leve    : 1
wp            : yes
flags         : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips      : 2660.76

So far so good. What I can conclude now is, that I could optimize for instruction sets as SSE1, MMX, MMXExt!, 3DNow, 3DNowExt!, etc(?).

Now my /etc/make.conf has the following main variables:
Code:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="$CFLAGS"

As you can see, really conventional. So how can I optimize my apps to be maked for my machine?

Please, can anyone help me?

many many thanks,
Christian Parpart.
Back to top
View user's profile Send private message
mb
Guru
Guru


Joined: 25 Apr 2002
Posts: 355
Location: Hessen | .de

PostPosted: Fri May 17, 2002 12:06 pm    Post subject: Reply with quote

hi...

only gcc3.x supports athlon specific optimization features.. link your /etc/make.profile to /usr/portage/profiles/default-1.0-gcc3 and start recompile the system starting with gcc3 (twice?) and glibc and so on...

and set your compile settings to something like this:

Code:

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -pipe"
CXXFLAGS="-march=athlon -O3 -pipe"


#mb
Back to top
View user's profile Send private message
Guest






PostPosted: Fri May 17, 2002 1:41 pm    Post subject: Reply with quote

GCC 3.1 even supports things such as

-march=athlon-mp
-mmmx
-msse
-m3dnow
-mfpmath=sse

But because many packages still fail to compile with that new gcc I can't recommend switching to it as standard compiler. So until Gentoo switched to gcc 3.1 I recomment the usual -march-i686 -O3.

Cheers,
Andreas Simon
Back to top
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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