Re: compiling assembler in Xcode
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