User`s guide
System Stack Profiling
Profiling System Stack Use
To profile the system stack operation, perform these tasks i n order:
1 Load an application.
2 Set up the stack to enable profi ling.
3 Run your application.
4 Request the stack profile information.
Note If your application initializes the stack with known values when you
run it, stack usage is reported as 100%. The value does not correctly reflect
the stack usage. For example, DSP/BIOS writes a fixed pattern to the stack
(
0x00C0FFEE) when you run your project. This pattern prevents the stack
profiler from reporting the stack usage correctly. Disable DSP/BIOS to use
stack profiling in your project development.
Follow these steps to profile the stack as your application interacts w ith it. In
this example,
cc is an existing ticcs object.
1 Load the a pplication to profile.
2 Use the profile method with the setup input keyword to init ia li ze the
stack to a known state.
profile(cc,'stack','setup')
With the setup input a rgument, profile writes a known pattern into the
addresses that compose the s tack. For C6000 processors, the pattern is A5.
For C2000 and C5000 processors, the pattern is A5A5 to account for the
address size. As long as your application does not write the same pattern to
the s ystem stack,
profile can report the stack usage correctly.
3 Run your application.
4 Stop your running application. Stack use results gathered from an
application that is running may be incorrect.
4-21