User`s manual

1-4 Suite56 DSP Tools User’s Manual Motorola
Linkers
Figure 1-3. Input and Output of the Assembler
1.3 Linkers
A linker combines relocatable object files (such as files generated by a compiler or an
assembler) or object modules (such as parts of a library) into a single, new, absolute
executable file. With the option
-i, the Suite56 linker can also produce a single, new,
relocatable file; such output can then in turn be linked itself, thus giving you a way to link
incrementally to produce a final executable file.
The executable output of a linker can be used in a variety of ways:
it can be executed on a target platform;
it can be loaded into a simulator and executed there;
it can be downloaded into a system in development;
it can be converted to Motorola S-record format to program into various types of
non-volatile memory (e.g., Flash, EPROM, PROM);
it can be sent to Motorola to generate mask ROM for devices that include ROM;
it may include symbolic information from the source code to use in a debugger
(option
-g).
In addition to its executable output, the Suite56 linker can optionally produce other kinds
of output:
map files (option
-m);
sorted list of symbols and their load-time values (option
-m also).
map file
linker
executable object file
assembler
(*.map)
COFF format (*.cld)
listings
(*.lst)
assembly code files
(*.asm)
equate files
(*.cln)
option -l
option -m
assembly macro files
(*.mac, *.h, *.asm)
memory use reports
option -mu
executable object file
COFF format (*.cld)
relocatable object file