avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] measuring stack/heap usage


From: Joerg Wunsch
Subject: Re: [avr-chat] measuring stack/heap usage
Date: Mon, 15 Mar 2010 07:26:22 +0100 (MET)

"Daniel Otte" <address@hidden> wrote:

> I'm looking for a way to measure the stack usage of my cryptographic
> functions.  Currently I'm considering filling the free stack space
> with some pattern and checking later who much of the pattern is
> destroyed (may doing this multiple times with different pattern).

> To implement this it would be useful to know where the stack ends.

Nope.  The usual way is to fill in the pattern by a time when there's
no stack yet at all, i. e. within the .initX sections, before calling
(or jumping to) main().

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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