
Preparing Your Program for Debugging
1-10
1.4
Preparing Your Program for Debugging
Figure 1–4 illustrates the steps you must go through to prepare a program for
debugging.
Figure 1–4. Steps You Go Through to Prepare a Program
C Compiler
assembly
language
C
source
object
code
executable
object code
If you’re working with a C
program, start here.
If you’re working with an
assembly language
program, start here.
This is the file that you
load when you invoke the
debugger.
Assembler
Linker
code
If you’re preparing to
debug a C program. . .
1)
Compile the program; use the –g option. If you plan
to use the profiler, compile the program with the –as
option.
2)
Assemble the resulting assembly language pro-
gram. (The compiler does this automatically.)
3)
Link the resulting object file.
This produces an object file that you can load into the
debugger.
If you’re preparing to
debug an assembly
language program. . .
1)
Assemble the assembly language source file.
2)
Link the resulting object file.
This produces an object file that you can load into the
debugger.
You can compile, assemble, and link a program by invoking the compiler,
assembler, and linker in separate steps; or you can perform all three actions
in a single step by using the cl60 shell program. The
TMS320C6x Assembly
Language Tools User’s Guide and the TMS320C6x Optimizing C Compiler
User’s Guide contain complete instructions for invoking the tools individually
and for using the shell program.
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...