Creating an application
ARM DUI 0529C Copyright © 2010-2011 ARM. All rights reserved. 3-5
ID080411 Non-Confidential
3.3 Using the linker
The linker combines the contents of one or more object files with selected parts of one or more
object libraries to produce an image or object file.
Typically, you invoke the linker as follows:
armlink [options] file_1 ... file_n
3.3.1 Linking example
To link the object file
shapes.o
, use the command:
armlink shapes.o --info totals -o shapes.axf
where:
-o
Specifies the output file as
shapes.axf
.
--info totals
Tells the linker to display totals of the Code and Data sizes for input
objects and libraries.
3.3.2 See also
Tasks
Using the Linker:
Chapter 3 Linking models supported by armlink.
Reference
Linker Reference:
Chapter 2 Linker command-line options.
Creating an application
ARM DUI 0529C Copyright © 2010-2011 ARM. All rights reserved. 3-6
ID080411 Non-Confidential
3.4 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
.
3.4.1 Building 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.
3.4.2 See also
Tasks
Using the Assembler:
Assembler command line syntax on page 7-2.
Reference
Assembler Reference:
Chapter 2 Assembler command line options.
Creating an application
ARM DUI 0529C Copyright © 2010-2011 ARM. All rights reserved. 3-7
ID080411 Non-Confidential
3.5 Using the fromelf image converter
The features of the
fromelf
image converter utility include:
converting an executable image in ELF executable format to other file formats
controlling debug information in output files
disassembling either an ELF image or an ELF object file
protecting intellectual property (IP) in images and objects that are delivered to third
parties
printing information about an ELF image or an ELF object file.
3.5.1 Examples of using fromelf
The following examples show how to use
fromelf
:
fromelf --text -c -s --output=outfile.lst infile.axf
Creates a plain text output file that contains the disassembled code and the symbol
table of an ELF image.
fromelf --bin --16x2 --output=outfile.bin infile.axf
Creates two files in binary format (
outfile0.bin
and
outfile1.bin
) for a target
system with a memory configuration of a 16-bit memory width in two banks.
The output files in the last example are suitable for writing directly to 16-bit Flash device.
3.5.2 See also
Tasks
Using the fromelf Image Converter:
Chapter 3 Using fromelf.
Reference
Using the fromelf Image Converter:
Chapter 4 fromelf command reference.

RS41P-KT-40000

Mfr. #:
Manufacturer:
Description:
RVDS 4.1 PROFESSIONAL FL
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet