![](/images/new-backgrounds/1203247/203247123x1.webp)
Using the call stack
The Call Stack pane enables you to follow the flow of your program by examining the current status of functions and variables. This pane shows you the path that leads from the main entry point to the currently executing function.
To monitor your execution path:
1.Select View → Pane Views → Call Stack from the default Code window to display the Call Stack pane.
2.Select File → Reload Image to Target to reload the image.
3.Click the Go button on the Actions toolbar to execute the image. Enter a large number of runs, for example 50000.
4.Click Stop Execution to stop the program before it finishes.
The Call Stack tab, in the Call Stack pane, displays details of the functions currently on the stack and awaiting execution.
5.
This menu enables you to carry out operations on the chosen function in the stack, for example to scope to that function.
6.Click on the Locals tab in the Call Stack pane. This displays a list of the variables that are local to the current function, shown in the example in Figure
Figure 4-11 Local variables in the Call Stack pane
If a variable is a structure or an array, a plus sign is added to the entry in the Call Stack pane. You can click on this to expand the variable to see all elements of the structure or array.
7.
8.Click on the Statics tab, to see
Copyright © 2002 ARM Limited. All rights reserved. | ARM DUI 0181B |