Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: Sanity checking

2009-02-23 by Don Kinzer

--- In AVR-Chat@yahoogroups.com, wagnerj@... wrote:
> A variant of this question was just raised on AVRFreaks.
The particular thread that was referred to dealt more specifically 
with RAM use issues specific to C++.  The more general issue of 
estimating RAM requirements (including maximum stack use) has been 
addressed in other threads including the two below to which I 
contributed some observations based on my experience with the 
subject.

http://www.avrfreaks.net/index.php?
name=PNphpBB2&file=viewtopic&t=70486.

http://www.avrfreaks.net/index.php?
name=PNphpBB2&file=viewtopic&t=71093

As I mentioned in one of the threads, we have created a static 
analysis tool that estimates the maximum stack use of an execution 
thread beginning at a specified Flash address.  We use this in our 
ZBasic compiler to determine the amount of RAM required for each 
task of the user's program.  Because we are in control of the 
generated code, this represents a specialized use case where we can 
deal with the issues that cause problems in static analysis of RAM 
usage (specifically, recursion, indirect calls (ijmp, icall), 
interrupt service routines).  A generalized tool that could analyze 
an arbitrary executable is significantly more difficult to implement.

Don Kinzer
ZBasic Microcontrollers
http://www.zbasic.net

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.