3 ms·
I would be scared if they weren't using C (or a derivative like C++). C is a highly deterministic language. It has no "features" per se. If you point to a line
by wyager 14y ago
I would be scared if they weren't using C (or a derivative like C++).
C is a highly deterministic language. It has no "features" per se. If you point to a line of C code, I can tell you with very high certainty what assembly opcode(s) it will compile to. The only thing C does that might be considered a "feature" is memory abstraction, which is kind of important for any large programming project.
Now, if you're trying to advocate using Java or Python or something, you've obviously never worked on embedded software. Not only does any very-high-level language introduce much higher resource requirements, but they are also much less deterministic (which is BAD for spacecraft).
Proper C code is not less stable than any very-high-level language. In fact, there is a lot less that could go wrong.
- pjmlp 14y agoActually I am really scared that they use C or C++ instead of something sane like Ada. Unless their static analysis tools just make C or C++ look like Ada.
- testbro 14y agoI wouldn't be supplied if they used MISRA [1]. It can be enforced just using static analysis too, and IIRC it's good enough for avionics used elsewhere. [1] : http://en.wikipedia.org/wiki/MISRA_C http://en.wikipedia.org/wiki/MISRA_C