News for hackers. Stuff that matters.
Re:Custom Allocators Demystified by phkahler on Tuesday October 13, 2020 @07:18PM (#24771441)
>> I know custom allocators are important for tiny platforms and so on...

For tiny platforms like micro controllers used all over your car, standard practice is to never use dynamic memory allocation. When you have 1K or even 64K of RAM and need to run for a while the only way to be sure you never run out of memory is not to use malloc at all. Fragmentation is a thing. This may mean managing fixed collections of objects much like the allocators in the article, but the linker figures out where to put them at compile time.

There are no comments on this comment yet.