User`s guide

4 Verification
5 Use the profile method to capture a nd view the results of proling the
stack.
profile(cc,'stack','report')
The following example demonstrates setting up and proling the stack. The
ticcs object cc must exist in your MATLAB workspace and your application
must be loaded on your processor. This example comes from a C6713
simulator.
profile(cc,'stack','setup') % Set up processor stack--write A5 to the stack addresses.
Maximum stack usage:
System Stack: 0/1024 (0%) MAUs used.
name: System Stack
startAddress: [512 0]
endAddress: [1535 0]
stackSize: 1024 MAUs
growthDirection: ascending
run(cc)
halt(cc)
profile(cc,'stack','report') % Request stack use report.
Maximum stack usage:
System Stack: 356/1024 (34.77%) MAUs used.
name: System Stack
startAddress: [512 0]
endAddress: [1535 0]
stackSize: 1024 MAUs
growthDirection: ascending
4-22