IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page

#define setHeapInitialSize ( size   )     initLinkerSymbol(__heap_initial_size, size)

This macro function controls the __heap_initial_size constant, to override the program's default heap size which is 4096 bytes. The default configuration of the program heap manager allows additional heap memory to be requested from the system. Nevertheless, it is recommended that this macro be used on applications where you know that a lot of heap space will be required. This will make the system run somewhat more efficiently.

Also note that the heap increment quantum step size can be tuned.

The size must be a constant expression.

This would be placed in one of your C files outside the scope of any module to specify 64 kByte heap space.

setHeapInitialSize(0x10000) ;
SC2x3 V1.00 - CLIB V1.00
This macro does not exists in the SC1x, SC2x and SC1x3 C-Library.
See also:
setHeapIncrement      setStackSize      setProgramAttributes

Top of page | Main page

Copyright © 2020 Beck IPC GmbH
Generated on Tue Jul 14 12:36:24 2020 by Doxygen 1.6.1