by w3pm · 13y ago · 0 comments
(Yes the compiler can do some trickery at certain optimization levels but even then, you're able to look at the generated assembly very easily and verify the output you expect to see).
I'm a little surprised they aren't running their own OS with a custom scheduler; I guess the odds of that being bug free vs the odds of running into a Linux bug make it a losing proposition.
Also, the idea that C or even Assembler creates guarantees of stability and predictability is contingent on the CPU design.
But now I am at the limits of my shallow pool of knowledge. The SpaceX stuff demonstrably works; Carmack has done fast control systems in C/C++ and it works. I'm probably making an unnecessary fuss.
I doubt "C is as close as you can get to WYSIWYG" is always entirely correct.
Unless you are talking about embedded processors or old 8 and 16 bit processors, this is no longer true in modern architectures.