Sunday, August 12, 2012

JPL C Coding Standard

Link: JPL C Coding Standard


The Mars Science Laboratory has 500,000 lines of C running on VxWorks and following these rules, including:

  • no dynamic memory allocation (all stack, no heap!)

  • no functions longer than 60 lines

  • no recursive functions

  • no mutexes

  • no goto :(

  • no crashing

No comments:

Post a Comment