User`s manual

SuperH Family E10A-USB Emulator for Multi-core Microcomputers Section 7 Tutorial SH-4A
R20UT0363EJ0500 Rev. 5.00 Page 233 of 296
Aug 10, 2012
7.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 of the High-performance
Embedded Workshop for CPU0. 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 7.26 [Locals] Window
Click mark ‘+’ at the left side of array a in the [Locals] window to display the elements.
Refer to the elements of array a before and after the execution of the sort function, and
confirm that random data is sorted in descending order.