Keil Logo Arm Logo

Using the assembler

Using the assembler

The basic syntax to use the assembler (armasm) is:

armasm [options] inputfile

For example, to assemble the code in a file called myfile.s, and to include debugging information in the resulting object file, type:

armasm --debug myfile.s

This generates an object file called myfile.o.

Show/hideBuilding an example from assembler source

To build an assembler program, for example word.s:

  1. Assemble the source file using the command:

    armasm --debug word.s
    
  2. Link the file using the command:

    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.

Show/hideSee also

Tasks

Using the Assembler:

Reference

Assembler Reference:

Copyright © 2011-2012 ARM. All rights reserved.ARM DUI 0592B
Non-ConfidentialID062912

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.