|
From: | Mattias Svensson |
Subject: | [avr-gcc-list] Stack usage profiling for function calls. |
Date: | Thu, 20 Mar 2003 10:26:43 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 |
Today I read the assembler listing file ".list" output from avr-gcc andtrace how many registers are pushed onto the stack for each function, it works but is kind of time consuming...
Maybe I have missed some nice switch for avr-gcc that generates what I want.It is also possible to make a mem dump and see how deep the stack has grown since all RAM is zeroed at init. But it is not accurate enough, some worst case scenarios are easily missed.
Regards: M Svensson.
[Prev in Thread] | Current Thread | [Next in Thread] |