Heap

Joel Sherrill joel.sherrill at OARcorp.com
Wed Feb 20 22:02:18 UTC 2008


Andrei Chichak wrote:
> This is probably also in the documentation but...
>
> I don't like using malloc in my systems, I prefer to allocate memory
> statically at compile time or on the stack.
>
>   
The RTEMS "core" OS itself does not call malloc.  The
C library, filesystems and other supporting layers do.
> What other parts of RTEMS uses the heap and how do you determine how
> much space to allocate to the heap?
>   
There is no easy way to predict since it is application
dependent.  If you tend to create everything at
init time and avoid stdio, then getting the free info
on the C program heap should tell you what you
need to know.

I know that's now much of an answer but it is
what it is.

--joel
> Thanks,
> Andrei
>
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list