John Regehr wrote:
There is an AVR tool called stacktool by John Regher that computes the maximum stack depth by analyzing the binary code: http://www.cs.utah.edu/~regehr/stacktool/

I haven't used it myself, but it is a very cool approach. (It isn't ported to the MSP430.)

Hi-

Also my stack tool hasn't been maintained for a while! I recommend that you check out Bill McCartney's stack estimator:

  http://selab.csuohio.edu/dsnrg/stack-estimator/

This one is far simpler than mine and (I think -- I haven't tested it) already supports MSP430. I am working to get Bill's tool, not mine, integrated into TinyOS -- simplicity is good.

Does Bill's stack estimator work for ordinary C code too? I was under the impression that it was only for nesC and TinyOS.

/adam
--
Adam Dunkels <[email protected]>
http://www.sics.se/~adam/


Reply via email to