Doug Carlson writes : > 1. While it's impossible in the general case to determine the maximum stack > size that a program will use, is there any mspgcc setting (or standalone > tool) that can handle the simple cases that dominate in MCUs (no recursion, > no function pointers, no nested ISRs) and spit out a maximum stack depth?
You may want to give a look at http://selab.csuohio.edu/stack-estimator/ This python script does pretty much what you ask for, even though it is written for NesC/TinyOS programs (as opposed to ordinary C running on bare metal). Still, I think it would be feasible to adapt it to your needs. Cheers, -Guillaume Salagnac ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users