2.5 The ARM assembler command

The assembler, armasm, can assemble ARM assembly code into ARM and Thumb code.

Typically, you invoke the assembler as follows:

armasm [options] inputfile

Building an example from assembly source

To build the assembler program word.s:

  1. Assemble the source file:
    armasm --debug word.s
  2. Link the object file:
    armlink word.o -o word.axf
  3. Use an ELF, DWARF 2, and DWARF 3 compatible debugger to load and run the image.

    Step through the program and examine the registers to see how they change.

Non-ConfidentialPDF file icon PDF versionARM DUI0529M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.