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

> Even if your code is perfect, the compiler might optimize it into something that might contain undefined behavior.

This is false. If your code is perfect, the compiler shouldn't do such optimization. Of course compilers have bugs, but that's compiler bugs not language standard problem. (Not to speak of bug free compilers like CompCert.)



> This is false. If your code is perfect, the compiler shouldn't do such optimization. Of course compilers have bugs

Then it's not false!




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: