![Texas Instruments TMS320C6 Series Скачать руководство пользователя страница 59](http://html.mh-extra.com/html/texas-instruments/tms320c6-series/tms320c6-series_user-manual_1094537059.webp)
Display the Contents of an Aggregate Data Type
2-23
An Introductory Tutorial to the C Source Debugger
Now you should see a display like the one below. The newly opened DISP
window becomes the active window. Like the FILE window, you can always tell
what’s being displayed because of the way the DISP window is labeled. Right
now, it should say DISP: big1.
DISP: big1
b1
0
b2
0
b3
0
b4
0
b5
0
q1
[...]
q2
{...}
q3
0x00000000
(Note that the values displayed in this diagram may be different from what you
see on the screen.)
-
Members b1, b2, b3, b4, and b5 are ints; you can tell because they’re
displayed as integers (shown as plain numbers without prefixes).
-
Member q1 is an array; you can tell because q1 shows [. . .] instead of a
value.
-
Member q2 is another structure; you can tell because q2 shows {. . .}
instead of a value.
-
Member q3 is a pointer; you can tell because it is displayed as a hexadeci-
mal address (indicated by a 0x prefix) instead of an integer value.
If a member of a structure or an array is itself a structure or an array, or even
a pointer, you can display its members (or the data it points to) in additional
DISP windows (referred to as the original DISP window’s
children).
Display what q3 is pointing to:
1) Point at the address displayed next to the q3 label in big1’s
display.
2) Click the left mouse button.
This opens a second DISP window, named *big1.q3, that shows what q3 is
pointing to (it’s pointing to another structure). Close this DISP window, or move
it out of the way.
lesson continues on the next page
→
Содержание TMS320C6 Series
Страница 10: ...x ...
Страница 20: ...xx ...
Страница 118: ...4 20 ...
Страница 144: ...6 16 ...
Страница 164: ...7 20 ...
Страница 170: ...8 6 ...
Страница 284: ...B 18 ...
Страница 290: ...C 6 ...