Re: GCC output (x86 only)
Re: GCC output (x86 only)
- Subject: Re: GCC output (x86 only)
- From: Peter O'Gorman <email@hidden>
- Date: Fri, 06 Feb 2009 10:29:36 -0600
Tim Lee wrote:
> A quick question...
>
> Does gcc output different bins for different architecture revisions of the same architecture (x86 in this case)?
>
> So, for a person that bought a first generation macbook with a core solo processor compared to one of the xeon macpro chips - will the compiler optimize for the specific target that its compiling for (host)? Or will gcc simply output standard x86 code that can run on any x86 system (with proper runtime environment) like a macbook, xserve, or mac pro?
Gcc uses its defaults for -march and -mtune. Apple has chosen some set
of "reasonable defaults" for its version of the compiler. Person
compiling on older macbook and newer Xserve with the same compiler
version and flags will get similar output.
See:
http://www.opensource.apple.com/darwinsource/DevToolsOct2008/gcc-5490/gcc/config/i386/i386.c
for the gory details of the reasonable defaults.
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden