
Overview
Motorola
Introduction
1-3
Object files are stored using the COFF format. COFF stands for
Common Object File
Format.
Utilities such as Cldinfo and Cldlod may be used to gain visibility into object
files.
1. Given a list of C source files from the user (see Figure 1-1) and options to apply to
those files, the control program runs each file through the C preprocessor and the C
compiler. The compiler creates individual assembly language source files for each
C source file provided on the command line.
2. The control program then sends the compiler output from these files to the
assembler, in addition to any assembly language files specified by the user on the
G56k command line.
3. The assembler output is routed to the linker for final processing. The linker tries to
resolve all unresolved link-time symbols with the standard (and any explicitly
requested) C libraries. The COFF linker object file output may then be directed to
any of several execution devices. Notice that the assembler can also be used to
create library files which can be included in a user defined library.
4. The execution devices shown in Figure 1-1 are:
a. RUN56 which allows the DSP56000/1 code (in COFF format) to be executed
on the host computer’s CPU
b. GDB56 which is a debugging tool for trouble-shooting the compiled application
c. SIM56000 which is a complete DSP56000/1 simulator that can be used to
execute the compiled application (in either COFF format or .lod file format) and
allow examination of registers and memory
d. ADS56000 is the development system hardware that can then be used to load
and execute the compiled application (in either COFF format or .lod file format)
on the ADS development system
e. The target system shown is the user’s custom DSP system.
Note:
The three execution devices in the shaded boxes are not part of the C compiler
software. The COFF linker output can be used by these execution devices
directly. The conversion utility Srec (see Figure 1-1) can be used to convert the
executable file from the COFF Linker to a suitable format for PROM burning.
These PROMs can then be used on the ADS development system or the user’s
target system. The PROM programmer, ADS development system and user’s
target system are not part of the DSP56KCC compiler.
The DSP56000 family represents a departure from more conventional architectures on
which other implementations of the C language are based. Also, the nature of DSP
applications dictates that a greater measure of control be provided to the programmer in
specifying the constraints of the run-time environment. For these reasons, the components
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.