4 ms·
This should say 2010. I believe much of it is out of date, as C11 does have a memory model, and does provide both atomics and barriers. Many, if not most, uses
by raphlinus 7y ago
This should say 2010. I believe much of it is out of date, as C11 does have a memory model, and does provide both atomics and barriers. Many, if not most, uses of volatile should probably be replaced by atomics.
https://en.cppreference.com/w/c/atomic https://en.cppreference.com/w/c/atomic
- oconnor663 7y agoHerb Sutter's (three hour long!) Atomic Weapons talk goes over the modern meaning of volatile towards the end: https://youtu.be/KeLBd2EJLOU?t=5299 https://youtu.be/KeLBd2EJLOU?t=5299
- User23 7y agoYou're not wrong, but C is a language where plenty of apps are still using older versions, so while as per site etiquette this should have the date, it's still interesting, especially for the embedded space.
- sk0g 7y agoThere's using an outdated version, and then there's C. The more commonly used language specs, IME, are C99 and C89! That's 20 and 30 years of 'stability'.
- icedchai 7y agoMany projects are stuck in C99, or even C89...