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

You're correct. (https://barrgroup.com/Embedded-Systems/How-To/C-Volatile-Key...)

But again, you're telling the compiler that you know what you're doing, and to not perform its normal optimization. I'm not well-versed in compiler design, but I think that's the tradeoff you have to make between trusting the user's design choices, or not.



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

Search: