• 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: "Corey O'Connor" <email@hidden>
  • Date: Thu, 10 Feb 2005 16:58:43 -0800

Perhaps the option "CodeWarrior-Style inline assembly"? -fasm-blocks
will solve your problem? Dunno if this counts as inline assembly as it
isn't inline with C code other than the function definition.

-Corey O'Connor

On Thu, 10 Feb 2005 18:19:03 -0500, Dave Thorup <email@hidden> 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.
>
> Thanks!
> _____________________________
>
> Dave Thorup
> Software Engineer
> email@hidden
>
> http://www.kuwan.net
> Defaults Manager - The premier editor for Mac OS X's User Defaults /
> Preferences database.
>
>
>  _______________________________________________
> 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
>
>


--
-Corey O'Connor
 _______________________________________________
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

  • Follow-Ups:
    • Re: Problems with assembly "or" instruction...
      • From: Dave Thorup <email@hidden>
References: 
 >Problems with assembly "or" instruction... (From: Dave Thorup <email@hidden>)

  • Prev by Date: Mac mini compile farm timing
  • Next by Date: Re: Distributed build overhead and Mac Mini vs XServe pricing
  • Previous by thread: Problems with assembly "or" instruction...
  • Next by thread: Re: Problems with assembly "or" instruction...
  • Index(es):
    • Date
    • Thread