• 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: compiling assembler in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling assembler in Xcode


  • Subject: Re: compiling assembler in Xcode
  • From: Nava Carmon <email@hidden>
  • Date: Fri, 17 Oct 2008 14:36:36 +0200

Actually after digging on the web I found out, that I should use __asm__ instead of asm  and it worked, but still I have problems with it.

Not I'm getting the following error:

{standard input}:757:suffix or operands invalid for `rol'



probably on the following functions:

static inline unsigned ROL(unsigned int word, int i)
{
   __asm__ ("roll %%cl,%0"
      :"=r" (word)
      :"0" (word),"c" (i));
   return word;
}

static inline unsigned ROLc(unsigned int word, const int i)
{
   __asm__ ("roll %2,%0"
      :"=r" (word)
      :"0" (word),"Ic" (i));
   return word;
}

Thanks for you help

On Oct 17, 2008, at 2:26 PM, Jean-Daniel Dupas wrote:


Le 17 oct. 08 à 13:02, Nava Carmon a écrit :

Hi,

I have some external c library with mixed assembler code.

static inline unsigned ROR(unsigned word, int i)
{
   asm ("rorl %%cl,%0"
      :"=r" (word)
      :"0" (word),"c" (i));
   return word;
}

How do i compile it with Xcode? Do I need to rewrite it, or some project setting will be enough?

Thanks in advance.

Nava

If you ask, I assume you tried and got an error, isn't it ?
If this is the case, what is the error you got?



 _______________________________________________
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: 
 >compiling assembler in Xcode (From: Nava Carmon <email@hidden>)
 >Re: compiling assembler in Xcode (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: compiling assembler in Xcode
  • Next by Date: Re: int128_t
  • Previous by thread: Re: compiling assembler in Xcode
  • Next by thread: CVS add directory
  • Index(es):
    • Date
    • Thread