| |||
| Home > Creating an application > 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.
To build an assembler program, for example word.s:
Assemble the source file using the command:
armasm --debug word.s
Link the file using the command:
armlink word.o -o word.axf
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.
Using the Assembler:
Assembler Reference: