News for hackers. Stuff that matters.
Re:In C, how do you know if the dynamic allocation succeeded? by tjoff on Friday November 05, 2021 @04:23PM (#29124349)
I wouldn't say this is the reason. Embedded systems typically don't have virtual memory to start.

I would expect (but verify) a malloc implementation on embedded to return null if it can't satisfy the allocation.

But even with that assumption malloc in embedded is often a bad idea. You need to plan for worst case anyway and you can not afford memory fragmentation.

There are no comments on this comment yet.