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

I'm aware of that. The question was whether any practical architectures will do the "wrong" thing here.


Compilers will do the "wrong" thing. For example, gcc optimizes out the "x >= 0" check in

    for (int x = 0; x >= 0; x++)
making it an infinite loop, because it assumes "x++" can't overflow.




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

Search: