On Sunday 14 March 2010, Christopher Harvey wrote:
> Maybe this is an unrelated question, but this topic reminded me to ask:
> Is there a way to ask the compiler to report the maximum stack height of
> a program? I know this is undecidable if there is recursion. Seems
> really relevant in the case of avrs, since the amount of heap space one
> can use depends on the amount of stack space used. (heap
> stack/collisions). I can't think of any way to decide how much heap
> space to use when I don't know how big the stack can get.
>
> Thanks,
> Chris

The compiler can generate a listing file, which reports the stack usage for 
each function. Look for text 'frame size='

-- 
Julius



_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to