Compilers and programming style (was Re: A question of style)
Walter Murray
walter at hpclwjm.HP.COM
Sat Jan 13 06:59:45 AEST 1990
> volatile int *p;
> *p; /* has side effects and must not be optimized away */
> Just curious - what kind of code should be generated for the above
> C fragment?
The Standard says, "What constitutes an access to an object that has
volatile-qualified type is implementation-defined." Section 3.5.3
In other words, when you buy an ANSI-conforming C, it will be
accompanied by a document that will define the semantics of the
fragment above.
Walter Murray
----------
More information about the Comp.lang.c
mailing list