tags:

views:

223

answers:

1

What is the best way to go about compiling arm assembly code into xcode. I have those assembly files which are generated. Is there a way i can just include the .s file directly into the c code that i have. Or i will need to run an preprocessor first which would generate the .o file which i can link with my files. If that is the case, how do you do it in XCode.

+1  A: 

It appears that you just need to add the .s file into your project. Converting it into inline assembly for C is possible, but also fairly difficult, so I recommend against it.

Martin v. Löwis
I did that and it compiled fine. But the problem i am running into is that the functions definitions are in the assembly file even though i have stub function defining in the C code, the compiler is complaining that it cannot find the function implementations.