Chris Liechti wrote:
however i'm not using them because the bytes used for multiple stacks without overflows are too precious and getting each stack depth as minimal as possible isn't always easy (and still wasting bytes). i often use the eventhandler that can be found in the mspgcc library (see examples/libraries/eventhandler)
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.)
/adam -- Adam Dunkels <[email protected]> http://www.sics.se/~adam/
