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

... which is why trying the access is undefined behaviour, which is why there are no constraints on what the compiler has to do for that case. The standard says nothing about what the compiler has to do in the case that you try to dereference a pointer that points outside an object, therefore it may assume that you don't do so, therefore it may combine the four byte loads into one 32-bit load.


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

Search: