MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Guia do Utilizador Página 193

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 575
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 192
System Stack Profiling
Profiling System Stack Use
To prole the system stack operation, perform these tasks i n order:
1 Load an application.
2 Set up the stack to enable proling.
3 Run your application.
4 Request the stack prole 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 reect
the stack usage. For example, DSP/BIOS writes a xed pattern to the stack
(
0x00C0FFEE) when you run your project. This pattern prevents the stack
proler from reporting the stack usage correctly. Disable DSP/BIOS to use
stack proling in your project development.
Follow these steps to prole the stack as your application interacts w ith it. In
this example,
cc is an existing ticcs object.
1 Load the a pplication to prole.
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
Vista de página 192
1 2 ... 188 189 190 191 192 193 194 195 196 197 198 ... 574 575

Comentários a estes Manuais

Sem comentários