Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Compiler writers tend to assume the processor is a dumb machine.

A lot of C developers tend to assume the compiler is a dumb program ;) There are significant hoisting and vectorization optimizations that signed overflow can unlock, but they can't always be applied.



If C had real array types the compiler could do real optimizations instead of petty useless ones based on UB.


Fair, hence the push in many language for range-based for loops that can optimize much better.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: