12 8 / 2012

jstn:

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

Permalink 35 notes

  1. dursmarnai reblogged this from jstn
  2. ezrock reblogged this from jstn
  3. forguitaristsonly reblogged this from jstn
  4. deadlybrad42 reblogged this from jstn
  5. gbattle said: “All Stack. No Heap.” Words to live by.
  6. atestu reblogged this from jstn and added:
    These look like the rules we had in college. Our...or less.We often forgot to respect the...
  7. whatsacomeandago reblogged this from jstn
  8. jstn posted this