Optimization, volatile (was Re: volatile)
Greg Limes
limes at sun.uucp
Fri May 6 09:04:21 AEST 1988
In article <536 at sol.warwick.ac.uk> cudcv at cu.warwick.ac.uk (Rob McMahon) writes:
>It's been said before, but some people seem to have missed it ... how do
>you use #pragma to specify all of:
>
> volatile int *p;
> int *volatile p;
> volatile int *volatile p;
It's been said before, but some people seem to have missed it ...
volatile int *p; -> #pragma volatile (*p)
int *volatile p; -> #pragma volatile (p)
volatile int *volatile p; -> #pragma volatile (p, *p)
Lets have volatile in the language, but not for the wrong reasons.
--
Greg Limes [limes at sun.com] Illigitimi Non Carborundum
More information about the Comp.lang.c
mailing list