Note
If you use the two‑region memory model and do not provide any heap memory, you cannot call malloc(), use stdio, or get command‑line arguments for main().
If you set the size of the heap region to zero and define __user_heap_extend() as a function that can extend the heap, the heap is created when it is required.
See the description of __use_no_heap in Tailoring storage management, for more information on how to issue a warning message if the heap or heap region is used.