I’ve some arm assembly code based on GNU as syntax, which can be compiled under Ubuntu by gcc-arm-linux-gnueabi tool. Now I want to add support for iOS to my code, but I failed under Xcode 4.3. I find the clang 3.1 in Xcode doesn’t parse my code, such as the comment in my code is after ‘@’, the assemble directive ‘.text’ and so on. Later, I find Clang’s integrated assembler is Unified Syntax only, which is different from GNU as’ syntax. How can I make clang process my code without changing my code? Thanks!
You can disable the integrated assembler to fall back to the system one with -no-integrated-as I believe
I have seen the -no-integrated-as in the manual, but how can I specify the particular assembler to clang? And does it also apply to llvm-gcc?
I have seen the -no-integrated-as in the manual, but how can I specify the
particular assembler to clang?
I'm not sure if/how you can - I assume it just uses the system 'as' in
the same way it uses the system linker (ld), etc...
And does it also apply to llvm-gcc?
Not sure - llvm-gcc is dead.