Re:Heap on Embedded Devices: Analysis and Improvement
by plasticchris on Wednesday January 27, 2016 @09:38AM
(#10980171)
The allocator that comes with free rtos (I assume he's using it as he mentions pvPortMalloc) can be extended to support realloc efficiently without too much trouble so that it will resize if possible. For example https://github.com/hello/heap_6
[ Parent
| on HN ]
Re:Heap on Embedded Devices: Analysis and Improvement
by dimonomid on Wednesday January 27, 2016 @11:13AM
(#10980810)
In this case, pvPortMalloc and friends is what Espressif SDK provides in their binaries; it doesn't provide sources. So we can't just extend existing allocator, without actually replacing functions with our implementations by objdump.
We could replace them with whatever, but umm_malloc is still the most efficient allocator for memory-constrained devices that I'm aware of.