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.
IAR , Stack/Heap
Started by ●August 7, 2006
Reply by ●August 7, 20062006-08-07
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.
> 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.