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

> Can the C compiler really optimize foo to always return 0?

Yes

> That seems extremely unintuitive to me.

C compilers are extremely unintuitive. This is a relatively sane case, they do things that are much more surprising than this.



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

Search: