Setting to prevent memory allocation
Joel Sherrill
joel.sherrill at OARcorp.com
Thu May 6 21:45:55 UTC 2010
On 05/06/2010 03:51 PM, Yaklin, Allan C wrote:
>
> I apologize for cluttering your inboxes, but I didn’t ask the right
> question the first time around.
>
> Does the RTEMS kernel dynamically allocate memory? If it does, is
> there a setting in confdefs.h to prevent it?
>
Not via malloc at all. But after the 1st task runs, it is
only in a very few specific places:
+ thread create (for stacks, etc)
+ message queue create
POSIX may do a few others but that should be it for the Classic API.
Those come from the RTEMS Workspace.
--joel
>
> --
>
> Allan Yaklin
>
> acyakli at sandia.gov
>
> (505) 284-8660
>
> *From:* rtems-users-bounces at rtems.org
> [mailto:rtems-users-bounces at rtems.org] *On Behalf Of *Yaklin, Allan C
> *Sent:* Thursday, May 06, 2010 12:34 PM
> *To:* 'rtems-users at rtems.com'
> *Subject:* Setting to prevent memory allocation
>
> Hello,
>
> I’m working on an embedded system with limited memory, and we were
> wondering if there was a way to prevent RTEMS programs from dynamic
> allocating memory. I was specifically thinking of a possible setting
> in confdefs.h, but I was unable to find anything relevant when
> searching through the file. Is this possible in RTEMS?
>
> --
>
> Allan Yaklin
>
> acyakli at sandia.gov
>
--
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