LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-30-2004, 12:20 AM   #1
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
Best Optimization Flags for a 512mb (ddr) equipped Athlon XP 1.8 ghz?


what are the best optimization flags?

-O3 and -fomit-pointers?

i have no idea of what any of this stuff does.
 
Old 08-30-2004, 12:30 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
The O3 and additional pointers optimize the compiled from source apps with those standard flags. You can also specify cpu-athlonxp, etc. This is covered quite a bit in www.gentoo.org since that's the whole reason for the distribution. The thing is that when you optimize, you creep out a little performance from apps, but you risk their instability because most of these app programmers don't test on those flags.

My suggestion is just pick the right cpu in the kernel, enable pre-emptible kernel, and then install whatever you want. 50 bucks on a 2.6 cpu might not hurt either. If you want performance that's the better way to go with modern distro's. If you want a hobby/new job, then use gentoo and portage and the optimization flags. It's a pretty slick distribution, but the former recommendation will garner you more speed.
 
Old 08-30-2004, 12:40 AM   #3
AdamS
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Rep: Reputation: 0
I just followed with Gentoo's handbook: -O2 -march=athlon-xp -pipe -fomit-frame-pointer
And many people say -O3 can did.
but I don't want to risk^_^
 
Old 08-30-2004, 12:42 AM   #4
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Original Poster
Rep: Reputation: 30
is debian considered a modern distubition?

what is the difference between -Os and -O3?
 
Old 08-30-2004, 12:52 AM   #5
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
You smell of elderberries

Debian unstable is modern. The O3 flag is gcc optimization. Alan Cox says O2 outperforms Os, and O3 sometimes outperforms the rest. Here is one study done in that respect. It's all pretty much voodoo though. There are just too many variables/complexities involved all around.

http://jetweb.hep.ucl.ac.uk/ktjet/profiling.html
 
  


Reply



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
GCC 3.4/3.3 Optimization Flags monohouse Linux - Software 0 10-28-2004 10:48 AM
Intel 2.4 Ghz 1MB vs athlon 2600+ Wynand1 Linux - Hardware 9 08-26-2004 10:33 PM
optimization flags and kernel compiling kpachopoulos Linux - Newbie 2 08-26-2004 07:29 AM
gcc optimization flags: rules of thumb elyk Linux - Software 3 08-04-2004 11:49 PM
A question About ATHLON 1.4 Ghz emperor13 Linux - General 2 10-15-2001 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:10 AM.

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