section of the heap memory


dylan_hung@...
 

Hi all,

When CONFIG_MINIMAL_LIBC_MALLOC is enabled, the size of the target binary (zephyr.bin) grows with CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE.
I found the heap memory is allocated at .data section, will it be better if it is allocated at .bss?
https://github.com/zephyrproject-rtos/zephyr/blob/main/lib/libc/minimal/source/stdlib/malloc.c#L29

Join devel@lists.zephyrproject.org to automatically receive all group messages.