LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   CPU optimization at build, improvement significant? (https://www.linuxquestions.org/questions/programming-9/cpu-optimization-at-build-improvement-significant-117070/)

gundelgauk 11-17-2003 11:42 AM

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. :D

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!

LogicG8 11-17-2003 12:47 PM

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/

gundelgauk 11-17-2003 03:27 PM

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


All times are GMT -5. The time now is 06:24 AM.