3 ms·
For C, use seccomp and write simple and readable code and hope the compiler optimizes instead of complicated and hard to audit code, I don't mean commenting and
by _8j50 4y ago
For C, use seccomp and write simple and readable code and hope the compiler optimizes instead of complicated and hard to audit code, I don't mean commenting and variable/function names but the actual control flow, data structures and algorithms. Eliminate complexity unless you absolutley have no choice. And the power 10 rules from JPL which i think can apply to other languages as well.
https://en.m.wikipedia.org/wiki/The_Power_of_10:_Rules_for_Developing_Safety-Critical_Code https://en.m.wikipedia.org/wiki/The_Power_of_10:_Rules_for_D...