• 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: Problems with assembly "or" instruction...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with assembly "or" instruction...


  • Subject: Re: Problems with assembly "or" instruction...
  • From: Stan Shebs <email@hidden>
  • Date: Fri, 11 Feb 2005 10:49:37 -0800

Dave Thorup wrote:

I'm moving a CFM project from CodeWarrior to Xcode and Mach-o and I've run into a problem when compiling some assembly. I've got a function as follows:

static asm unsigned long Mul32Shft16r( register unsigned long val1, register unsigned long val2 )
{
// a bunch of assmebly that compiles fine
// ...
// v-- then I get a problem with this line --v
or r3,r30,r31
}


The problem I get is as follows:

error: parse error before `||' token

Does anyone have any suggestions? It's like GCC is converting the "or" into a "||" and then getting confused. This is the only bit of assembly that doesn't compile, everything else works fine.

This is a known bug that has been fixed recently. Alas, there seems not be a clever workaround, so you'll need to beg/borrow/steal (ooh, advocating a crime in public :-) ) a newer compiler. If you can't use a Tiger seed, there's always the really desperate measure of compiling the apple-ppc-branch tag at the FSF repository, since I believe the fix is in the sources there.

Stan

_______________________________________________
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: 
 >Problems with assembly "or" instruction... (From: Dave Thorup <email@hidden>)

  • Prev by Date: Re: breakpoints sometimes stop at the beginning of a C++ method
  • Next by Date: Installing Tiger?
  • Previous by thread: Re: Problems with assembly "or" instruction...
  • Next by thread: bsd static lib question
  • Index(es):
    • Date
    • Thread