newlib malloc/memalign

Joel Sherrill joel.sherrill at
Mon Sep 29 21:52:53 UTC 2003

Chuck Tuffli wrote:

> I saw a posting* in March that talks about switching from using RTEM's
> malloc to the one in newlib. I'm interested in using the memalign
> function and was wondering what would I need to do to implement this
> support.
> *

The first step would be to disable the malloc code in RTEMS,
provide the malloc mutex used by newlib (see the gxx_thread_wrappers
in RTEMS), and arrange for newlib to use the memory formerly
given to our own malloc.

> --
> Chuck Tuffli
> Agilent Technologies

Joel Sherrill, Ph.D.             Director of Research & Development
joel at                 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