I blogged about problems with volatile in Chttp://kristerw.blogspot.se/2016/04/why-volatile-is-hard-to-specify-and.html …
@kwalfridsson And also, even if marked "volatile", the compiler allocated it and knows it got put in non-volatile storage (registers).
-
-
@BRIAN_____ That depends on the definition of "access" :) And I (as a compiler developer) think that the compiler should optimize it :) -
@BRIAN_____ But C99 rationale 6.7.3 indicates the C committee expect it to work with the text starting: -
@BRIAN_____ "If it is necessary to access a non-volatile object using volatile semantics, the technique is to cast the address of the [...] -
@kwalfridsson Others have pointed that out before. IMO, it's not clear if that is based on faulty thinking of how casts work or real intent.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.