Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

malloc() on an embedded platform can still present pitfalls. This article explains why:

https://mcuoneclipse.com/2022/11/06/how-to-make-sure-no-dyna...



Yes, you can still run out of memory. But you can't get a fragmented heap if you never free(). And if you allocate only at init, not during the normal operation stage, you can't run out of memory if you manage to start up successfully.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: