2.8 Building an image from legacy ARM syntax assembly code

This example shows how to build ARM assembly language code with armasm.

Note

Only use armasm for legacy assembly files. Use armclang to assemble new assembly files.
To build an assembly program, for example hello_world.s:

Procedure

  1. Assemble the source file:
    armasm --cpu=8-A.32 --debug hello_world.s
    
  2. Link the object file:
    armlink hello_world.o -o hello_world.axf
    
Related concepts
2.6 The ARM assembler commands
Non-ConfidentialPDF file icon PDF versionARM DUI0741B
Copyright © 2014 ARM. All rights reserved.