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
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/avr-chat

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to