package ti.sysbios.heaps |
|
Contains modules that inherit from IHeap
A "Heap" is a module that implements the IHeap interface. Heaps are
dynamic memory managers: they manage a specific piece of memory and
support allocating and freeing pieces ("blocks") of that memory.
[
more ... ]
package ti.sysbios.heaps [2, 0, 0, 0] {
// Fixed size buffer heap manager
// A heap that calls user supplied callback functions
// Variable size buffer heap manager
// Multiple fixed size buffer heap manager
// Empty heap
// Heap manager that enables tracking of all allocated blocks
}
DETAILS
A "Heap" is a module that implements the IHeap interface. Heaps are
dynamic memory managers: they manage a specific piece of memory and
support allocating and freeing pieces ("blocks") of that memory.
The
xdc.runtime.Memory module is the common interface for all
memory operations. Actual memory management is performed by a Heap
instance, such as an instance of HeapMem or HeapBuf. For example,
Memory_alloc() is used at runtime to dynamically allocate memory.
All of the Memory APIs take a Heap instance as one of their parameters.
Internally, the Memory module calls into the heap�s interface functions.
The xdc.runtime.Memory module is documented in the XDCtools online help.
Implementations of Heaps provided by SYS/BIOS are discussed here.
Memory allocation sizes are measured in "Minimum Addressable Units"
(MAUs) of memory. An MAU is the smallest unit of data storage that can
be read or written by the CPU. For the C5000, this is a 16-bit word.
For the C28x, this is an 16-bit word. For the all other currently
supported target families�including C6000 and ARM�this is an
8-bit byte.
generated on Sat, 19 Jan 2019 15:38:09 GMT