Can you do inline assembly in objective-c?

Possible duplicate:
How to make a built-in assembly on the iPhone?

I run xcode4.2.1, can I do in the assembly of strings, i.e. __asm ​​in the code?

+5
source share
1 answer

This is just a matter of using the built-in pointer and calling asm ():

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

CLANG uses a similar but different form of ASM (although it is still pretty compatible with GAS, which can be read here here

+3
source

All Articles