Implicit DSP/BIOS Instrumentation
3-34
Figure 3-7. Calculating Used Stack Depth
3.6.3 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. 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