4 ms·
You don't need to look that far afield. Literally everything runs over a kernel written in C. But that being said: this is just proof that it "can" be done, n
by ajross 15y ago
You don't need to look that far afield. Literally everything runs over a kernel written in C.
But that being said: this is just proof that it "can" be done, not that there aren't better choices. Specifically, could you do a missile management system in less than a million lines of code or for less than $100M with equivalent performance and quality on another platform? I think most of our intuitions would agree that you could.
- alexchamberlain 15y agoLiterally?
- ajross 15y agoMeaningless semantic quibble. Yes, "literally" everything. Or everything worth talking about anyway. Do you have a counter example of a complete system seeing active development in the modern world without any use of C at all? I certainly can't think of one.
- alexchamberlain 15y agoOf course, many micros are still programmed in assembly. And assembly still plays a big part in many subsystems, though I would concede much would be written in C. Not literally everything.
- ajross 15y agoI'm aware of no microcontroller work in the modern world that is done solely in machine code. Again, you have a counterexample?
- daeken 15y agoI write assembly for microcontrollers constantly. If you require reliable timing at the cycle level, you have absolutely no choice in the matter.
- ajross 15y agoSure. But you don't write a system only in assembly. The point, now buried in this silly thread, was alexchamberlain's nit that it wasn't "literally" true that all systems are built on top of C kernels (whether it be an OS kernel, firmware, whatever).
- alexchamberlain 15y agoYou can call me what you like and if you'd said "everything" instead of "literally everything", I would have let it slide. You were being quite misleading.
- ajross 15y agoGiven that you haven't provided a single counterexample, I can't see how I'm being misleading. All modern systems are built on C. All of them. And for the record, I didn't call you anything. A "nit" is a pedantic correction, c.f "nitpicking". I could have said "quibble" too. It's a reference to your words, not you.
- onli 15y agoBut having C with all its vulnerabilities in the kernel caused many - if not most - of the security relevant issues of the kernel(s). Think of buffer overflows alone.
- dkersten 15y agoAs far as I'm aware, a lot of the safety critical certification requires the entire stack to be certified, in which case the OS (which would probably be a hard-realtime OS) would be certified too. Probably part of the $100M price tag is a hefty license fee to use said OS.
- _djo_ 15y agoYep, unfortunately I don't know which OS they went for but it was one of the commercially-available RTOSes on the market. Those don't come cheap. Avionics software certification is phenomenally expensive. Both Airbus and Boeing have warned in recent years that it has become such a big part of their development costs that they're concerned about it becoming unsustainable.