[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
need a quick allocation tutorial
- Date: Mon, 9 Aug 1999 17:02:35 -0500
- From: ccaudle at pdq.net (ccaudle)
- Subject: need a quick allocation tutorial
>===== Original Message From <joel at OARcorp.com> =====
>malloc is built on the region manager (variable -- partitions are fixed
>unit allocation).
OK, that makes sense. Where is the malloc heap set up?
I'm assuming that if you use the region (or partition) manager directly, you
need to make sure that the memory range used isn't already in use by the
region created for malloc.
Or should I not bother, and just always use malloc?
Any ideas on the alignment flag? I'm not sure I will actually have to
implement this, since whether or not the flag is actively used will probably
depend on which libraries I link in.
I will probably try not implementing it first, but in case it is needed, does
RTEMS have a way to specify alignment for allocated memory blocks?
thanks,
Chris