ARM VERSION 1.2 Datasheet Page 101

  • Download
  • Add to my manuals
  • Print
  • Page
    / 144
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 100
Creating an Application
ARM DUI 0064D Copyright © 1999-2001 ARM Limited. All rights reserved. 3-17
Building the example
To build the example:
1. Enter the code using any text editor and save the file in your current working
directory as
addreg.s
.
2. Type
armasm -list addreg.lst addreg.s
at the command prompt to assemble the
source file.
3. Type
armlink addreg.o -o addreg
to link the file.
Running the example in the debugger
To load and run the example in the debugger:
1. Type
armsd addreg
to load the module into the command-line debugger.
2. Type
step
to step through the rest of the program one instruction at a time. After
each instruction, you can type
reg
to display the registers.
When the program terminates, to return to the command line, type
quit
.
For further details on ARM and Thumb assembly language programing, see the ADS
Assembler Guide.
3.3.3 Setting linker options from the command line
The ARM linker, armlink, enables you to:
link a collection of objects and libraries into an executable ELF image
partially link a collection of objects into an object that can be used as input for a
future link step
specify where the code and data will be located in memory
produce debug and reference information about the linked files.
Objects consist of input sections that contain code, initialized data, or the locations of
memory that must be set to zero. Input sections can be Read-Only (RO), Read/Write
(RW), or Zero-Initialized (ZI). These attributes are used by armlink to group input
sections into bigger building blocks called output sections, regions and images. Output
sections are approximately equivalent to ELF segments.
Page view 100
1 2 ... 96 97 98 99 100 101 102 103 104 105 106 ... 143 144

Comments to this Manuals

No comments