Hacker News new | past | comments | ask | show | jobs | submit login

Sure, if a compiler can do that with 100% certainty, it can use a register for it. However that '100%' comes after it treats &a as a pointer until the very moment it is '100%' sure.

Also FWIW i was referring to C, not C++. C pointer optimizations can easily chop off your leg, C++ basically adds poison just in case you survive the blood loss.




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

Search: