User`s guide

Implicit DSP/BIOS Instrumentation
Instrumentation 3-25
3) Run your program and view the STS object that monitors the stack
pointer for this HWI function in the Statistics View window.
4) Subtract the minimum value of the stack pointer (maximum field in the
STS object) from the end of the system stack to find the maximum depth
of the stack.
The Kernel Object View displays stack information for all targets. (See
section 3.5, Kernel/Object View Debugger)
Figure 3-13. Calculating Used Stack Depth
3.4.4 Monitoring Variables
In addition to counting hardware interrupt occurrences and monitoring the
stack pointer, you can monitor any register or data value each time a
hardware interrupt is triggered.
This implicit instrumentation can be enabled for any HWI object. Such
monitoring is not enabled by default. The performance of your interrupt
processing is not affected unless you enable this type of instrumentation in
the Configuration Tool. The statistics object is updated each time hardware
interrupt processing begins. Updating such a statistics object consumes
between 20 and 30 instructions per interrupt for each interrupt monitored.
Configured Stack
free
Low
Address
GBL_stackbeg
GBL_stackend
SP
Used
Stack
used stack depth = {GBL_stackend - min(SP)}
STS_add(--*addr) = min(SP)
High
Address