You copied the Doc URL to your clipboard.

ARM Compiler ARM C and C++ Libraries and Floating-Point Support User Guide : Stack and heap memory allocation and the ARM C and C++ libraries

Stack and heap memory allocation and the ARM C and C++ libraries

The ARM C and C++ libraries require you to specify where the stack pointer begins, but specifying the heap is optional. However, some library functions use the heap, either explicitly (for example malloc) or implicitly (for example fopen).

If you are providing a heap, you must:

  • Understand the heap usage requirements of the ARM C and C++ libraries.
  • Configure the size and placement of the heap.
  • Consider which heap implementation you want to use.

If you are not providing a heap, you must:

  • Understand the heap usage requirements of the ARM C and C++ libraries.
  • Understand how to avoid or reimplement the heap-using functions.

This section contains the following subsections:

Was this page helpful? Yes No