LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-17-2003, 11:42 AM   #1
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
CPU optimization at build, improvement significant?


Greetings!


First let me state my apologies if this is the wrong forum for this but as I'm referring to a thread that originated here, I thought I'd better ask in here.
And beware: multiple questions following.

After reading this thread, I started wondering if high cpu optimization would make a significant (read 'noticeable') difference when building applications. Would it make sense to rebuild almost any program (including basic system programs) with enabled optimizations to get more performance out of one's box? Or is it sufficient to compile common used apps like this?

If it is, I'd like to know if there is a convenient way to enable these optimizations when compiling source code I got off sourceforge for example. The kernel configuration offers a possibility to select a certain cpu architecture as a target platform. But for common programs it doesn't seem to be that simple. The thread I mentioned above names a possible way but I'm not comfortable with makefiles as I'm not a programmer. Can I achieve the same thing by handing parameters to ./configure ? Or is there another way?

My last question is about a 'standard' compilation. Say I downloaded and untarred an application source. I do a ./configure, then a make. Is there a standard level of optimization? For example would that application be optimized for a 568 architecture by default? Or do developers usually set the optimization level and/or platform to be used?


As you might have realized, these are mostly yes/no questions... however I'd be grateful for any deeper insight any of you could give me!
 
Old 11-17-2003, 12:47 PM   #2
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
Optimization at compile time can bring significant benefit.
You have to be careful with optimizations though b/c some
programs will break when you use some optimizations.

For performance comparisons see:
http://www.gentoo.org/main/en/performance.xml

For setting up optimization:
http://reviewed.homelinux.org/howtos/compiling/
 
Old 11-17-2003, 03:27 PM   #3
gundelgauk
Member
 
Registered: Jul 2003
Distribution: Gentoo
Posts: 168

Original Poster
Rep: Reputation: 30
It sounds like it's worth giving a try! Looks like I have some reading to do, thank you very much, LogicG8!
 
  


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
Linux and Fonts: A guide to improvement rgbrock1 Linux - General 2 04-27-2005 09:37 PM
Awk losing significant figures. UnHolier Mandriva 4 03-15-2005 12:54 PM
MS Predicts Significant Sales Decline due to Linux. rvijay General 2 09-03-2004 07:53 PM
MySQL :: Table in query adds significant delay lackluster Programming 7 07-10-2004 03:48 AM
kde "end session dialog" improvement c__dric Linux - Software 1 10-01-2003 09:45 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:34 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