News for hackers. Stuff that matters.
Re:Writing a game engine in pure C: The Graphic Initialization by reikonomusha on Wednesday June 05, 2019 @12:31PM (#20106096)
Indirection, pointer casting, and the C standard library actually make things quite opaque in practice. Do you sbrk your own memory or use malloc? Malloc may not be as mysterious as GC, but it’s still a runtime-managed resource.
Re:Writing a game engine in pure C: The Graphic Initialization by kevin_thibedeau on Wednesday June 05, 2019 @05:33PM (#20109400)
You can replace malloc with your own implementation. Just have a big static array to dole out bits of memory. The loader or startup code will prep it for you.