"Daniel Otte" <[email protected]> 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. ;-)


_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to