Dereferencing Typecast Integer Literals

Doug Gwyn gwyn at smoke.brl.mil
Mon Feb 11 19:26:07 AEST 1991


In article <2309 at tuvie.UUCP> hp at vmars.tuwien.ac.at (Peter Holzer) writes:
>We solved the problem by declaring value volatile, which is extremely
>non-obvious and misleading, but does its job.

In fact that's a good use for "volatile".  It forces the compiler to
try to use the variable in the generated code in a one-to-one
correspondence with the explicit accesses in the C source code.



More information about the Comp.lang.c mailing list