• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with Xcode i386 Link problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Help with Xcode i386 Link problems (From: Eric Albert <email@hidden>)

  • Prev by Date: Show Assembly and Preprocess Woes
  • Next by Date: unrecognized option '-syslibroot'
  • Previous by thread: Re: Help with Xcode i386 Link problems
  • Next by thread: AutoReleasePool question.
  • Index(es):
    • Date
    • Thread