aiSee: Stack Usage Analysis

Stack usage analysis

Call graph annotated with stack usage analysis results. Generated by StackAnalyzer for HC12.


In embedded systems, stack memory has to be allocated statically by the programmer. Underestimating stack usage can lead to serious runtime errors (stack overflow) which can be difficult to find. Overestimating stack usage means a waste of memory resources.

Control flow graph with stack usage annotationsStackAnalyzer provides the solution to this problem: It automatically determines maximum stack usage of the tasks in your application. The analysis results are visualized with aiSee, which is fully integrated into the StackAnalyzer. Stack height differences are shown as annotations in the application’s call graph and control-flow graph. Critical program sections can be immediately recognized thanks to customizable color coding.

The StackAnalyzer features:

A free trial version is available.