You copied the Doc URL to your clipboard.

The ARM assembler commands

ARM Compiler provides two assembler commands: armclang for GNU syntax assembly code, and armasm for legacy ARM syntax assembly code.

  • armclang includes an assembler for GNU syntax assembly language source code. Use GNU syntax for all new assembly source code, and use armclang to assemble these source files.

    Typically, you invoke the armclang assembler as follows:

    armclang --target=target [options] file_1.sfile_n.s

    You can specify one or more .s input files. armclang automatically identifies from the .s suffix that the input file contains assembly code, and assembles the source files. armclang produces one object file for each source input file.


    The GNU Binutils - Using as documentation provides complete information about GNU syntax assembly code.

    The Migration and Compatibility Guide contains detailed information about the differences between ARM and GNU syntax assembly to help you migrate legacy assembly code.

  • armasm assembles ARM assembly code. You should only use armasm for legacy assembly files.

    Typically, you invoke the armasm assembler as follows:

    armasm --cpu=name [options] file_1.sfile_n.s

Was this page helpful? Yes No