The trouble with volatile
Posted May 16, 2007 11:43 UTC (Wed) by massimiliano
In reply to: The trouble with volatile
Parent article: The trouble with volatile
I agree that it is difficult to characterize an "access" is "volatile" or not, and I admit that I don't quite understand the statement. On the other hand, while "data is volatile" might be true for some time during the execution of the kernel, the "volatile" in the C language does not provide you the abstraction that you need most of the time.
A funny thing, that made me ring a bell...
In the .NET bytecode specification (called "CIL", Common Intermediate Language), there is the possibility to define something as "volatile", and... guess what? it is accesses that can be marked so, not variables!
This reinforces my idea that the .NET standard is very well thought
out: they really learned from the mistakes of the past, at least on
to post comments)