Heads-up: volatile and C++
Mike Stump
mrs@apple.com
Tue Apr 19 00:13:00 GMT 2005
On Apr 18, 2005, at 3:08 PM, Ken Raeburn wrote:
> Is there anything in the language specifications (mainly C++ in
> this context, but is this an area where C and C++ are going to
> diverge, or is C likely to follow suit?) that prohibits spurious
> writes to a location?
No, in both languages. The reason is there isn't a way to observe
it, if there were, then the answer would be yes.
Volatile for example provides a way to observe it, and in that case,
the spurious write is prohibited.
More information about the Gcc
mailing list