6.15 Displaying Local Variables
The user can display local variables in a function using the [Locals]
window. For example, we will
examine the local variables in the
main
function, which declares four local variables:
a
,
j
,
i
, and
p_sam
.
•
Select [Locals] from the [Symbol] submenu of the [View] menu. The [Locals] window is
displayed.
The [Locals] window shows the local variables in the function currently pointed to by the program
counter, along with their values. Note, however, that the [Locals] window is initially empty
because local variables are yet to be declared.
Figure 6.28 [Locals] Window
•
Click mark ‘+’ at the left side of array
a
in the [Locals] window to display the elements.
•
When the user refers to the elements of array
a
before and after the execution of the
sort
function, it is clarified that random data is sorted in descending order.
116
Содержание Emulator System E8
Страница 12: ......
Страница 17: ......
Страница 18: ......
Страница 24: ...6...
Страница 32: ...14...
Страница 63: ...Figure 4 7 New Project Workspace Dialog Box 45...
Страница 84: ...g Select Debug Setting from the Debug menu Figure 4 27 High performance Embedded Workshop Window 66...
Страница 88: ...70...
Страница 110: ...92...
Страница 123: ...Figure 6 10 Source Window Break State 105...
Страница 146: ...128...
Страница 148: ...130...
Страница 154: ...136...
Страница 160: ...142...
Страница 164: ...146...