|
|
|
|
|
by dahart
2954 days ago
|
|
No that's incorrect. Their rules are C guidelines, and they are easy to Google. You might want to do that before making assumptions. NASA's rules, the ones being referenced above, are designed for safety. They require code to be easy to statically analyze and to have absolutely predictable behavior. Also to be avoided: memory allocation, unbounded loops, function pointers, preprocessor macros. https://en.wikipedia.org/wiki/The_Power_of_10:_Rules_for_Dev... |
|
This is in addition to not using recursive functions being pretty standard in anything embedded. Early computers and embedded systems had very limited stack space or had calling conventions that made recursion impossible.