Setting up heap memory
In this section:
The size of the heap is defined in the linker configuration file as a block. To change the allocated amount of heap memory, set the symbols _NEAR_HEAP_SIZE, _FAR_HEAP_SIZE, and _HUGE_HEAP_SIZE to the required values:
define block NEAR_HEAP with alignment = 2,
size = _NEAR_HEAP_SIZE { };
define block FAR_HEAP with alignment = 2,
size = _FAR_HEAP_SIZE { };
define block HUGE_HEAP with alignment = 2,
size = _HUGE_HEAP_SIZE { };Specify the appropriate sizes for your application. If you use heaps, you must allocate at least 50 bytes each for them.
For more information, see Heap memory handlers.