4 ms·
"C: all the power of assembly language with all the ease-of-use of assembly language"
by davidw 9y ago
"C: all the power of assembly language with all the ease-of-use of assembly language"
- beefhash 9y agoNot quite, unfortunately. In assembly language, you don't have to fear that your compiler optimizes out clearing cryptographic keys out of memory at the end of a function.
- syrrim 9y agoIn assembly, you don't have to worry about pesky optimizations speeding up your code at all. A similar effect can be achieved in C by not manually enabling optimizations.
- dangerface 9y ago"A similar effect can be achieved in C by not manually enabling optimizations." Good luck with that.
- mpweiher 9y agoNor in K&R C. Or even early ANSI-C. This whole "we can use undefined behavior to "optimize" away half your program" idea is fairly new.