Heap CONFIGs #53842
Replies: 1 comment 3 replies
-
To avoid runtime allocation and to provide data protection, I suppose. Linux "kernel" does have one memory pool but applications uses it's own heap, which is in turn allocated from the kernel at runtime. Because on a typical Linux system applications comes and goes. It is the kernel's job to manage all memory in the system for them. Zephyr, instead, provides compile time heap allocation by Runtime allocation means fragmentation. Systems which Zephyr targets tend to have smaller amount of memory. And we want to use it as efficient as possible. Because a larger memory means higher costs in embedded systems. |
Beta Was this translation helpful? Give feedback.
-
Hi
I want to understand why Zephyr doesn't have a single shared heap rather (as far as i could discover) there are:
is it possible to at least make
malloc
andk_malloc
use the same heap ?is it designed this way for some security concerns ?
Thanks in advance 🙂
Beta Was this translation helpful? Give feedback.
All reactions