avr-gcc-list
[Top][All Lists]
Advanced

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

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


From: Carsten Beth
Subject: Re: [avr-gcc-list] Stack usage profiling for function calls.
Date: Tue, 1 Apr 2003 11:45:51 +0100

Hi!

> It is important to know how much stack is used with small RAM and no mem
> protection.

One (not optimal) approach to get this information is a simulation of your 
code. If you are simulating with simulavr you can write a trace of the stack 
pointer to a vcd file by means with simulavr-vcd. Than you just have to look 
to the trace with a waveform viewer such as gtkwave and to search for the 
largest value.

Carsten

-- 
--
Dipl.-Inform. Carsten Beth
CvO Universität Oldenburg
26111 Oldenburg - Germany
Fon: +49 441 9722-241 - Fax: +49 441 9722-282
E-Mail: address@hidden


reply via email to

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