Working with Memory
Array Window
Array Window
An Array window allows manipulation of a contiguous block of memory, displayed as an array of elements. The window lists array contents sequentially, starting at element 0.
The Array window title shows the base address bound to the array. The base address can bind to an address, a variable, or a register. An array bound to a local variable closes after the routine that defines the variable returns to the calling routine.
For array elements cast as structured types, a hierarchical control appears to the left of each element. Use these hierarchical controls to expand or collapse the display of each element’s contents.
Figure 20.2
shows an Array window. Table 20.3
explains the items in the window.
Figure 20.2 Array window
Table 20.3 Array Window Items
Icon Item
Hierarchical control
Bind To
242
Explanation
Click to collapse the view of the information pane.
Select the base address of the array: Address, Variable, or
Register.
IDE 5.7 User’s Guide
Table 20.3 Array Window Items ( continued)
Icon Item
Array size
Struct
Member
Element
Value
Location
Working with Memory
Array Window
Explanation
Enter the number of elements to display in the Array window.
Select a specific member to show in each element, or show all members.
Shows the array elements in a hierarchical list.
Shows the value of each array element.
Shows the address in memory of each array element.
Opening an Array Window
Use the View Array command to manipulate a memory block in an Array window.
1. Select the array that you want to view.
2. Select Data > View Array.
A new Array window appears.
TIP
Drag and drop a register or variable name into an Array window to set the base address. Use the View Memory As command to interpret memory displayed in an
Array window as a different type.
Alternatively, use a contextual menu to open an Array window, as
Table 20.4
explains.
Table 20.4 Opening an Array Window by Using a Contextual Menu
On this host…
Windows
Macintosh
Do this…
Right-click the array and select View Array.
Control-click the array and select View Array.
IDE 5.7 User’s Guide 243