Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 12-20-2003, 02:31 PM   #1
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 ??

Old 12-20-2003, 02:59 PM   #2
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...


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 > Forums > Non-*NIX Forums > Programming

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration