LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-20-2003, 02:31 PM   #1
Tomasfuego
Member
 
Registered: Nov 2002
Location: USA
Distribution: Lenny at work
Posts: 168

Rep: Reputation: 30
GCC Processor Optimization ?


Say im using an i686 and want to compile something with gcc3 .for another CPU, say for instance a x86_64 ..... what option would I pass to gcc?

gcc --optimize-for-x86_64 ??

Thanks.
 
Old 12-20-2003, 02:59 PM   #2
mark_2811
LQ Newbie
 
Registered: Sep 2003
Posts: 24

Rep: Reputation: 15
You would need a cross compiler to compiler for a different cpu architecture. Take a look at the CrossGCC FAQ for some more info...

http://www.objsw.com/CrossGCC/FAQ-4.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
gcc compilation optimization (Intel Centrino) IamDaniel Linux - Software 7 07-06-2005 07:24 PM
GCC 3.3.3 SMP optimization spaceman27 Linux - General 2 04-14-2005 03:47 AM
GCC 3.4/3.3 Optimization Flags monohouse Linux - Software 0 10-28-2004 10:48 AM
gcc optimization flags: rules of thumb elyk Linux - Software 3 08-04-2004 11:49 PM
gcc multiple optimization levels ? Ikebo Programming 2 07-11-2004 11:26 PM


All times are GMT -5. The time now is 03:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration