Re: Help with Xcode i386 Link problems
Re: Help with Xcode i386 Link problems
- Subject: Re: Help with Xcode i386 Link problems
- From: Mark Thomas <email@hidden>
- Date: Wed, 29 Mar 2006 18:08:27 +0100
- Organization: Coderus Ltd
Sorry copy & paste bug here :-(.
Hi,
I have reverted to use for gcc
__asm__ ( ".long 0x12345678\n\t" );
Instead of
asm {
opword 0x12345678
}
As there's a definite issue there with the CW assembly with gcc i386. I've
been looking at the assembly which is generates and looks like forgotten it
data comments it seems to me, and so thinking the markers are function names
which then makes sense why we get undefined link error - I've entered a
rdar://4493569 with these uploaded as well.
Thanks
Mark.
>
> It's important to note that your bug used 'opword', not 'opcode'.
> The difference is significant, since there doesn't appear to be any
> 'opcode' directive.
>
> That said, 'opword' in CodeWarrior is the same as '.long' for gcc.
> Use '.long' instead and your code should work on both PowerPC and Intel.
>
> Hope this helps,
> 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
>
>
_______________________________________________
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