wiki:library_malloc

Version 2 (modified by alain, 10 years ago) (diff)

--

The Malloc Library

The malloc.c and malloc.h provide a dynamic memory allocation service.

If the target architecture is clusterized (one physical memory bank per cluster), the application heap is physically distributed, and it can exist one heap(x,y) segment per cluster, and one allocator per cluster.

The distributed heap(x,y) segments must be explicitely defined in the application mapping.

  • For the malloc() function, the cluster selection is implicit: the (x,y) coordinate are defined by the coordinates of the processor running the calling task.
  • For the remote_malloc() function, the cluster selection is explicit: the (x,y) coordinates are arguments defined by the calling task

Available functions