![Texas Instruments TMS320C6 Series Скачать руководство пользователя страница 140](http://html.mh-extra.com/html/texas-instruments/tms320c6-series/tms320c6-series_user-manual_1094537140.webp)
Running Your Programs
6-12
Single-stepping through code
Single-step execution is similar to running a program that has a breakpoint set
on each line. The debugger executes one statement, updates the display, and
halts execution. (You can supply a parameter that tells the debugger to
single-step more than one statement; the debugger updates the display after
each statement.) You can single-step through assembly language code or C
code.
The debugger supports several commands for single-stepping through a pro-
gram. Command execution may vary, depending on whether you’re single-
stepping through C code or assembly language code.
Note that the debugger ignores interrupts when you use the STEP command
to single-step through assembly language code.
Each of the single-step commands has an optional
expression parameter that
works like this:
-
If you don’t supply an
expression, the program executes a single state-
ment, then halts.
-
If you supply a logical or relational
expression, this becomes a conditional
single-step execution (see page 6-14).
-
If you supply any other type of
expression, the debugger treats the expres-
sion as a
count parameter. The debugger single-steps count C or
assembly language statements (depending on the type of code you’re in).
step
Use the STEP command to single-step through assembly language or C code.
The format for this command is:
step
[
expression]
If you’re in C code, the debugger executes one C statement at a time. In
assembly or mixed mode, the debugger executes one assembly language
statement at a time.
If you’re single-stepping through C code and encounter a function call, the
STEP command shows you the single-step execution of the called function
(assuming that the function was compiled with the compiler’s –g debug
option). When function execution completes, single-step execution returns to
the caller. If the function wasn’t compiled with the debug option, the debugger
executes the function but doesn’t show single-step execution of the function.
For more information about the compiler’s –g option, see the
TMS320C6x Op-
timizing C Compiler User’s Guide.
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...