Using a heap implementation from bare machine C

To use a heap implementation in an application that does not define main() and does not initialize the C library:

  1. Call _init_alloc(base, top) to define the base and top of the memory you want to manage as a heap.

    Note

    The parameters of _init_alloc(base, top) must be eight-byte aligned.

  2. Define the function unsigned __rt_heap_extend(unsigned size, void **block) to handle calls to extend the heap when it becomes full.

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0475H
Non-ConfidentialID070912