Optimization, volatile (was Re: volatile)
Wayne A. Throop
throopw at xyzzy.UUCP
Sat May 7 01:02:31 AEST 1988
> cudcv at daisy.warwick.ac.uk (Rob McMahon)
>> terry at wsccs.UUCP (Every system needs one)
>> [...doing things like "volatile" is...] why #pragma was invented.
> 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;
I've made this reply before, but some people seem to have missed it...
you do it like so:
using keywords: using pragmas:
int is volatile int *p; int *p;
volatile #pragma volatile *p
pointer is int *volatile p; int *p;
volatile #pragma volatile p
both are volatile int *volatile p; int *p;
volatile #pragma volatile p, *p
"It works for me."
--
He wonders if he too might have made a similar mistake.
--- "Seen and Not Seen" by Talking Heads from "Remain in Light"
--
Wayne Throop <the-known-world>!mcnc!rti!xyzzy!throopw
More information about the Comp.lang.c
mailing list