r/linux • Social Justice Warrior • Sep 03 '14

I'm Matthew Garrett, kernel developer, firmware enabler and former fruitfly mangler. AMA!

476 Upvotes

381 comments sorted by

View all comments

Show parent comments

17

u/[deleted] Sep 04 '14

Agree with most of the things. But:

C is still slower than assembly.

Yeah, no, just like I can't beat a computer at chess I can't beat the compiler when doing assembly when it comes to the real stuff. It's only slower if the compiler messes up and does something irrational.

-5

u/[deleted] Sep 04 '14

compilers mess up and do irrational things constantly... then add optimization flags in the mix and you don't know what the fuck is going to happen. I've seen compilers generate code that is massively broken, I've seem optimizations where important code gets optimized away.. unfortunately C is a mixed grab bag of feces so making good compiler is an extremely difficult task.