Forum Discussion
Altera_Forum
Honored Contributor
14 years agoOne problem is that the maximum stack use is likely to be in an obscure error path...
If your code has no recursion, no calls to alloca() and no (or only identifyable) function pointers it is possible to determine the maximum stack use by analysing the object code. Parsing the output of gcc -S --fverbose-asm is possible the easiest source data.