[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Stack usage profiling for function calls.

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

I Wonder if there is any tool available that takes a function written in C and traces the stack usage of subsequent calls to other functions.

Today I read the assembler listing file ".list" output from avr-gcc and
trace 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.

M Svensson.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]