[Top][All Lists]

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

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

From: Anders Lindgren
Subject: Re: [avr-gcc-list] Stack usage profiling for function calls.
Date: Mon, 31 Mar 2003 23:00:47 +0200 (CEST)

Hi ! 

> It is important to know how much stack is used with small RAM and no mem 
> protection.
> I don't know if I am alone with this need?

Nope ! I wrote a small program providing this functionality for SDCC
(i8051). I feed all the .asm files resulting from the compile to it. For
each function in each file it calculated the worst case stack usage. It's
a real quick and dirty hack but I could try to find the sources if your
interested. One problem with this would be when linking libraries. The the
.asm files for all those would have to be supplied.

// Anders 

reply via email to

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