LinuxQuestions.org
Help answer threads with 0 replies.
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 10-05-2005, 04:03 PM   #1
jimznix
LQ Newbie
 
Registered: Oct 2005
Posts: 8

Rep: Reputation: 0
Question 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

 
Old 10-05-2005, 04:32 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
What Distribution?
 
Old 10-05-2005, 04:53 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 10-05-2005, 05:12 PM   #4
jimznix
LQ Newbie
 
Registered: Oct 2005
Posts: 8

Original Poster
Rep: Reputation: 0
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)
 
Old 10-05-2005, 05:15 PM   #5
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Looks like gentoo is for yoo...
 
Old 10-05-2005, 05:18 PM   #6
jimznix
LQ Newbie
 
Registered: Oct 2005
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
Old 10-07-2005, 06:13 AM   #7
jimznix
LQ Newbie
 
Registered: Oct 2005
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
  


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
Dual Processor Jukebox software Monster-Robot Linux - Software 1 11-05-2005 06:33 AM
Kernel Compile Processor Flags (description) Zaiboot Linux - General 3 05-26-2005 10:39 PM
Performing a Software Reset from Linux 7.2 to cause a reboot of the x86 processor esi-eric Linux - Hardware 6 07-06-2004 02:17 PM
compile error: #error unknown processor family kmack2001 Linux - Newbie 0 02-14-2004 11:52 AM
Kernel Compile with PIII Coppermine Processor? falcon56215 Linux - Software 3 12-07-2003 07:44 AM

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

All times are GMT -5. The time now is 10:07 PM.

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