You copied the Doc URL to your clipboard.

ARM Compiler Getting Started Guide : Building an image from GNU syntax assembly code

Building an image from GNU syntax assembly code

This example shows how to build GNU syntax assembly language code with armclang.


Use GNU syntax for all new assembly source code, and use armclang to assemble these source files. Only use ARM syntax and armasm for legacy assembly files.

To build an assembly program, for example hello_world.s:


  1. Assemble the source file:
    armclang --target=aarch64-arm-none-eabi -mcpu=cortex-a57 hello_world.s
    armclang assembles the source file and automatically calls the linker to produce an executable image, a.out.
  2. Use an ELF and DWARF 4 compatible debugger to load and run the image.

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

Was this page helpful? Yes No