Skip to content

Comment on NASA JPL C Coding Standard [pdf]parent

Comments

It doesn't mean you have to allocate on the stack. It means you have to declare buffer sizes at compile-time rather than at runtime. Instead of saying char ∗buf = malloc(size_of_my_data()), you just say char buf[MAX_SIZE_OF_MY_DATA].

would probably make it hard to do anything really interesting

The Rockbox music player firmware has the same restriction and it doesn't seem to prevent it from running Doom or decoding FLACs.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.