Renesas M16C PC4701 Network Card User Manual


 
6.2.12 Step12 : Displaying Local Variables
The user can display local variables in a function using the [C Watch] window.
If the downloaded program is the program generated by the assembler package for 740 family, you
can not watch variables in C watch window.
6.2.12.1 Displaying Local Variables
For example, we will examine the local variables in the tutorial function, which declares three local
variables: i, j, and p_sam.
Select [C Watch] from the [Symbol] submenu of the [View] menu. The [C Watch] window is displayed.
By default, [C watch] window has four tabs as following:
[Watch] tab
Only the variable which the user registered is displayed.
[Local] tab
All the local variables that can be referred to by the scope in which the the PC exists are
displayed. If a scope is changed by program execution, the contents of the [Local] tab will also
change.
[File Local] tab
All the file local variables of the file scope in which the PC exists are displayed. If a file scope is
changed by program execution, the contents of the [File Local] tab will also change.
[Global] tab
All the global variables currently used by the downloaded program are displayed.
Please choose the [Local] tab, when you display a local variable.
Double-click the mark '+' at the left side of pointer p_sam in the [Locals] window to display the
structure *(p_sam).
When the user refers to the members of the structure at the end of the Tutorial function, it is clarified
that random data is sorted in descending order.
78