[En-Nut-Discussion] Hardware Register Access Using Volatile Pointer
bernard.fouche at kuantic.com
Tue Apr 26 19:25:59 CEST 2011
Le 26/04/2011 18:45, Bernd Walter a écrit :
>> A few tests with GCC 4.6 showed, that the read is conserved. But is that
>> a proof?
> It's just an evidence - the documentation is a proof, but just for GCC.
volatile being implementation defined, the compiler's documentation is
the only proof we can have. The number of endless discussions regarding
this keyword proves that the C standard committee missed something.
An interesting reading about volatile: http://blog.regehr.org/archives/28 .
More information about the En-Nut-Discussion