Re:Writing C software without the standard library
by nuclx on Tuesday November 29, 2016 @07:40AM
(#13062658)
FreeRTOS also provides a few malloc implementations backed by static arrays (not dependent on sbrk), which can be useful for running malloc-based test code on embedded platforms without native malloc: http://www.freertos.org/a00111.html
Re:Writing C software without the standard library
by vidarh on Wednesday November 30, 2016 @09:52PM
(#13076806)
While one of the benefits of an arena allocator is to be able to deallocate everything at once, it's not that unusual to have an arena allocator that you can deallocate from "early" if needed.
TeX basically uses a special purpose implementation of malloc/free, with a static array as backing instead of memory requested from the OS with mmap(2) or sbrk(2). The main reason is portability (the original version was released in 1978 using WEB/Pascal).
[1] http://brokestream.com/tex.pdf