Stack analysis tool that really work?

Jul 29, 2021 37 Replies

arm gcc and Cortex-Mx MCUs embedded systems.



Is there a compilation-time (static) tool for stack analysis that really works?



The best I could find is -fstack-usage and avstack.pl Perl script, but I guess there's another and better way.


If you can pay, there is

formatting link
I haven't used it, but I have used other tools from AbsInt (WCET-analysis tools) which worked well, and (I believe) perform stack analysis internally, so I guess the simpler stack-analysis tool also works.

There is also

formatting link
which I have used successfully. I used it for an Ada application, but it should also work for C and C++.

Unfortunately I don't know of any free tools for your target.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required