1.11 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:

If you are not providing a heap, you must:

This section contains the following subsections:
Non-ConfidentialPDF file icon PDF versionARM DUI0475M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.