[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] measuring stack/heap usage
From: |
Daniel Otte |
Subject: |
Re: [avr-chat] measuring stack/heap usage |
Date: |
15 Mar 2010 00:19:44 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20090817 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
Hi Tobias,
my ciphers do not use the heap but the testing utils surrounding them do.
Some functions from avrlibc also use the heap
(http://www.nongnu.org/avr-libc/user-manual/malloc.html).
Even if not using the heap the stack can not use all RAM since some C constructs
may result in data put into .data or space allocated in the .bss segment.
You also would have to take care of IO-regisers in the memory map.
Tobias Schneider schrieb:
> On Sun, 2010-03-14 at 23:29 +0100, Daniel Otte wrote:
>> So in turn the question appears "how far does the heap go?"
>
> Well, do you use the heap at all? I would think twice before
> implementing a library which uses the heap.
>
> I don't think that any avr-libc library functions use the heap.
>
> So if you don't use any malloc's in your code your heap will always be 0
> bytes big.
>
> Greetings,
> Tobias
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> AVR-chat mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-chat
signature.asc
Description: OpenPGP digital signature
Re: [avr-chat] measuring stack/heap usage, Daniel Otte, 2010/03/15