On Saturday 21 August 2004 07:11, Dave VanHorn wrote: > At 06:06 PM 8/20/2004, Yang Wang wrote: > >I am using C. I am not using any dynamic memory allocation for the > >time being, so all the internal SRAM consumption should be for the > >stack. > The only way I know of, to check in that condition, is to clear the > memory to zeroes at the start (in simulation) run the program for a > while, and re-check the memory. "dead beef" is a better initial value to use, IMHO If C functions are being used, then a macro declaration of "RETURN" to trace the current stack pointer (perhaps simply by saving it to a known location in memory if it's less than the previously-saved value), prior to an actual return may be of use. I've not tried that; but it may be useful. -- /"\ Bernd Felsche - Innovative Reckoning, Perth, Western Australia \ / ASCII ribbon campaign | I'm a .signature virus! X against HTML mail | Copy me into your ~/.signature / \ and postings | to help me spread!
Message
Re: [AVR-Chat] Re: How to monitor Atmega128 SRAM usage at runtime?
2004-08-21 by Bernd Felsche
Attachments
- No local attachments were found for this message.