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

That note at the end about Linux is missing a link to the Documentation/volatile-considered-harmful.txt document. Basically, don't use volatile. Here, with your choice of formatting:

https://github.com/torvalds/linux/blob/master/Documentation/...

https://www.mjmwired.net/kernel/Documentation/volatile-consi...

https://www.kernel.org/doc/html/latest/process/volatile-cons...



Neat how inline assembly is one of the valid use cases. I'm given to understand that essential parts of the Linux kernel can't actually be implemented in pure C and that some assembly is required.


Isn't that the case for most (all?) operating systems?




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

Search: