Click to See Complete Forum and Search --> : Are compiled programs faster?
Nekopa
10-09-2001, 07:49 AM
I was wondering if you compiled software on your system, rather than using binaries, would the finished program run faster? Does the linux compiler detect your processor and compile for it, or so you have to tell it to. I compiled my kernel for K-2 and the system seems to run smoother. If, for example, I got the source code for X Windows and compiled it and re-installed it, would I see an improvement in speed when I use X?
Just wondering....
Lee
Yes. But the increase on some small programs (like X) might be unnoticeable. Video players and big fat programs like KDE would probably benefit most.
Oh and the ./configure (comes with source) script should auto-detect what cpu your using.
Nekopa
10-09-2001, 07:59 AM
Cool! KDE Was the one program I was thinking about speeding up the most. Now do I have to tell the compiler to do this, and if so, what would be the best place for me to find information on doing this? Or does the compiler figure this out for itself?
Lee
bkurt
10-09-2001, 11:35 AM
Just go to http://www.kde.org and they have very good instructions on compiling from sources. Good luck.