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

Sometimes you want to allow dynamic allocation at application startup, but never thereafter. Free happens implicitly when the system reboots.

This lets you use dynamically sized buffers, depending on the particular configuration present at startup. Very handy to not need to build many different configs and maintain separate binary images (and keep track so that you never update hardware with the wrong image). The disadvantage is that you can't just remove malloc() in such a design.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: