Native Assembler for ARM


I hope I'm not missing something obvious. I'm trying to get a native binary for ARM from a .s file. If I try to run "as -arch arm myFile.s" I get an error message indicating that no installed assembler exists for arm.

as: assembler (/usr/bin/../libexec/gcc/darwin/arm/as or /usr/bin/../local/libexec/gcc/darwin/arm/as) for architecture arm not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/ppc64/as for architecture ppc64
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/ppc/as for architecture ppc
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386

Can anyone point me to where can I get the ARM assembler. Or should I be using something else.



You’re trying to cross-compile, so you’ll need to either download or build a cross-assembler (from binutils).

If you want Darwin arm assembler, then you need to register and download the iphone sdk.


You can also download and build odcctools, which is a port of Mac OS X’s low level toolchain to be more OS independent, and build reliably


Shantonu Sen