Re: Help : Compiling for multiple architectures, is ppc970 valid ?
Re: Help : Compiling for multiple architectures, is ppc970 valid ?
- Subject: Re: Help : Compiling for multiple architectures, is ppc970 valid ?
- From: Eric Albert <email@hidden>
- Date: Thu, 13 Apr 2006 10:38:02 -0700
On Apr 13, 2006, at 10:30 AM, Paul Russell wrote:
On 13 Apr 2006, at 18:22, Eric Albert wrote:
On Apr 13, 2006, at 9:56 AM, Paul Russell wrote:
On 13 Apr 2006, at 10:32, Eric Albert wrote:
On Apr 13, 2006, at 2:16 AM, Peter wrote:
2) I would like to put extra settings for compiling G5 code,
-mcpu=970 -mpowerpc64 -mpowerpc-gpopt -force_cpusubtype_ALL -
DCPUG5
where can I put this settings or it is obsolete ?
That's obsolete. The architecture name you want is 'ppc64'.
'ppc970' gives you a 32-bit G5-specific binary.
I don't think it's obsolete - there are plenty of reasons why you
might want a 32-bit G5-specific executable.
To answer the OP's question though, you can add these
architecture-specific options under PER_ARCH_CFLAGS_ppc970.
I meant that the example is an obsolete way of building for 64-bit
PowerPC. To build a 32-bit G5 executable, you can pass -arch
ppc970, as I showed.
I think perhaps you're misinterpreting -mpowerpc64 - this just
enables 64 bit instructions, it doesn't have anything to do with 64
bit addressing.
Ah...you're right. I forgot that the G5 lets you use 64-bit
registers in 32-bit mode.
-Eric
_______________________________________________
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