Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-25-2003, 06:54 PM   #1
LQ Guru
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Does -march=athlon help?

I've done a bit of googling and haven't turned up any useful information on this topic:

I've seen some info related to passing the -march=athlon flag to gcc for some performance enhancements (on the athlon architecture of course). Does anyone know what kind of performance benefits would come of this?

If there's significant advantage to be had by using it, I'd be interested in making it a default compiler flag (if there's a way to do that - anyone know?) and/or the default for rpm building (which apparently is hiding somewhere in /etc/rpmrc or /lib/rpm/rpmrc), since I'm probably not going to be compiling stuff for anything other than the CPU I'm running on.

If anyone has experience with this or knows a good source of additional information, I'd love to know more...
Old 02-26-2003, 02:57 AM   #2
Senior Member
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
A good source for info about compiler flags in general is the gcc website at htp:// Just go to documentation and check with the doc's for the version you use.
Your best bet to find out what CPU flag is right for yours is probably a search at the gentoo forum at for 'gcc flags'.
It is a little messy with AMD's - I got a duron and there is a duron flag but I need to use athlon-tbird.Depends on the actual core of the CPU not the name.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
March of the Penguins movie - Thumbs up! J.W. General 2 07-10-2005 07:04 PM
gcc march agdepus Programming 8 05-26-2004 09:11 AM
mcpu vs march Spaz17 Linux - Newbie 6 12-31-2003 12:28 AM
-march optimisation for kernel BenPope Linux - General 2 09-03-2003 11:36 AM
march 8th 2003 SeT General 11 03-10-2003 10:27 PM

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration