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

I'm not sure it even has to get optimized away. Stuff like,

  Foo *ptr = NULL;
  ptr->member...
isn't going to access address 0, even w/o optimizations, despite the only pointer here being null. (It depends on the offset of "member", and if that offset is large enough, it might not be in the first page anymore. What's mapped at 0x1000 and later?)


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

Search: