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

You do need volatile (or equivalent) to instruct the compiler not to optimize away an access/write. Locked read/write intrinsics will already be annotated such that they don't get optimized.


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

Search: