EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

IAR , Stack/Heap

Started by wish_akuze wish_akuze August 7, 2006
Hello

I have used the IAR Embedded workbench for some time and i have always i justed the stack size according the memory needed by the variables in the code, but so far i haven't really understood the idea of the heap size. Can anyone give me some hints about this!

Thanks!


---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1/min.





Beginning Microcontrollers with the MSP430

wish_akuze wish_akuze wrote:
> Hello
>
> I have used the IAR Embedded workbench for some time and i have
> always i justed the stack size according the memory needed by the
> variables in the code, but so far i haven't really understood the
> idea of the heap size. Can anyone give me some hints about this!

The heap is the memory available to functions like "malloc" that uses
dynamic memory allocation.

If your program doesn't use dynamic memory allocation (most embedded
applications don't) then the heap will not even be included. In other
words, this is probably irrelevant for you.

-- Anders Lindgren, IAR Systems
--
Disclaimer: Opinions expressed in this posting are strictly my own and
not necessarily those of my employer.

The 2024 Embedded Online Conference