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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-05-2005, 04:03 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2005
Posts: 8
Rep:
|
compile software for your processor
Hi,
Im trying to find how to compile software optimized for your processor (amd64), I saw something somewhere but can't find it again. Hopefully trying to get some speed gains in apache and mysql?  I know how to compile the kernel to your processor, but this doesn't affect the software u compile after hey? Or is there a global setting u can put to compile everything after to your processor
Thanks

|
|
|
|
10-05-2005, 04:32 PM
|
#2
|
|
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Rep:
|
What Distribution?
|
|
|
|
10-05-2005, 04:53 PM
|
#3
|
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,595
|
When you compile software from source, the process usually begins with:
cd to directory containing source code.
./configure to configure (default).
Now, suppose instead you do this:
cd to directory containing source code.
./configure --help to get the configuration options. Study them carefully. There is usually an option you can specify on the command line to compile for a particular architecture (OS, CPU, target directory for libs, execs, etc).
Decide which options to use; write them out on a piece of paper, THEN enter the command ./configure <options> (as you have written them).
Then follow up with the remaining commands to finish the compilation.
|
|
|
|
10-05-2005, 05:12 PM
|
#4
|
|
LQ Newbie
Registered: Oct 2005
Posts: 8
Original Poster
Rep:
|
comprookie2000: any disto
i think im looking for something specific to GCC
a flag, u can set something with CFLAGS
just found something on a gentoo site
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
i think if u compile after that the code is more optimized to your processor (athlon-xp in this case)
|
|
|
|
10-05-2005, 05:15 PM
|
#5
|
|
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Rep:
|
Looks like gentoo is for yoo...
|
|
|
|
10-05-2005, 05:18 PM
|
#6
|
|
LQ Newbie
Registered: Oct 2005
Posts: 8
Original Poster
Rep:
|
im using slackware tho, just wanna optimize my server programs like mysql to run a little faster
there is a p4 version of mysql that was compiled using icc or something that ran 20% faster (saw it on the site). thats what im looking for, but for any program
|
|
|
|
10-07-2005, 06:13 AM
|
#7
|
|
LQ Newbie
Registered: Oct 2005
Posts: 8
Original Poster
Rep:
|
im using slackware tho, just wanna optimize my server programs like mysql to run a little faster
there is a p4 version of mysql that was compiled using icc or something that ran 20% faster (saw it on the site). thats what im looking for, but for any program
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:27 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|