Static stack analysis
With TrueSTUDIO Pro you can easily analyze and visualize the stack size requirements for your application or for certain tasks in your RTOS by using the Static Stack Analyzer tool. This tool analyses the stack size for each function and for the whole application at compile time. A truely useful tool that provides insights to stack requirements without needing target hardware.
Listing the stack cost for each function
The stack analysis tool lists the local cost in terms of stack size for each function in your project. It is possible to filter out functions which are garbage collected by the Linker using the Hide dead code check-box.
Whole-program static stack analysis
It is also possible to visualise the static stack requirements based on an understanding of the possible execution paths of the application as a whole. The tools lists local cost within each level of the call graph as well as the max cost at the current level in the call graph.