| |||
| Home > Writing ARM Assembly Language > Introduction > Code examples | |||
There are a number of code examples in this chapter. Many
of them are supplied in the directory.install_directory\RVDK\Examples\...\asm
Follow these steps to build and link an assembly language file:
Type armasm --debug at
the command prompt to assemble the file and generate debug tables.filename.s
Type armlink to link the object
file and generate an ELF executable image.filename.o
-o filename
To execute and debug the image, load it into a compatible debugger, for example RealView Debugger or ARM eXtended Debugger (AXD), with an appropriate debug target.
To see how the assembler converts the source code, enter:
fromelf -c filename.o
See RealView Developer Kit v2.2 Linker and Utilities
Guide for details on armlink and fromelf.