Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you do inline assemble in objective-c? [duplicate]

Possible Duplicate:
How do I do inline assembly on the IPhone?

I am running xcode4.2.1, can I do in line assembly i.e. __asm in the code?

like image 974
jdl Avatar asked Oct 07 '22 06:10

jdl


1 Answers

It's just a matter of using an inline specified and an asm() call:

inline void myFunction() {
    __asm__(//asm goes here);
}

CLANG does use a similar but different form of ASM though (it's still pretty darn compatible with GAS, which can be read about here

like image 170
CodaFi Avatar answered Oct 13 '22 11:10

CodaFi