Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Correct -march setting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
GatoVolador
Apprentice
Apprentice


Joined: 16 Jun 2004
Posts: 268
Location: California, USA

PostPosted: Tue Nov 09, 2004 7:04 am    Post subject: Correct -march setting Reply with quote

Hello all,

I was checking out my make.conf file and noticed that I've got
Code:
-march=i686
in my CFLAGS. I've got a Pentium-2 266 and uname -a says
Code:
Linux yemaya 2.6.8-gentoo-r10 #1 Wed Oct 20 00:39:55 PDT 2004 i686 Pentium II (Klamath) GenuineIntel GNU/Linux
I was checking out man gcc and noticed the following:
Quote:
The choices for cpu-type are i386, i486, i586, i686, pentium, pentium-mmx, pentiumpro, pentium2, ... i686 is equivalent to pentiumpro
So the question is: should I use -march=pentium2 or -march=i686? I realize the difference would probably be small, but I certainly don't mind using my chip's full instruction set.

Any recommendations are appreciated,
Jay
Back to top
View user's profile Send private message
bradp_84
n00b
n00b


Joined: 06 Nov 2004
Posts: 48
Location: Australia

PostPosted: Tue Nov 09, 2004 7:48 am    Post subject: Reply with quote

Hi jayb,

The man page for gcc doesn't mention pentium pro as having the MMX instruction set. I don't personally know that it doesn't, but it lists it for the other architectures that do have it. From memory I think the MMX instruction set added another 70 odd instructions to the standard pentium that are pretty good for multimedia stuff.

I'd say move to -march=pentium2 and emerge -e world :wink:

Cheers,

Brad
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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