volatile (in comp.lang.c)
Bill.Stewart.<ho95c>
wcs at skep2.ATT.COM
Mon May 2 14:12:17 AEST 1988
In article <51437 at sun.uucp> limes at sun.UUCP (Greg Limes) writes:
:In article <2674 at geac.UUCP> daveb at geac.UUCP (David Collier-Brown) writes:
:> 1) what architectures currently use asynchronously-changing
:>memory locations for program notification of events? DEC Vax,
:>various CDC boxes, MIPS(tm),...
:... and any program with a signal handler that modifies a global
:variable, which is pretty inclusive if you ask me, .....
Any program with a signal handler that *reads* global variables
needs the moral equivalent of volatile, if you're going to allow
optimizing compilers to avoid "redundant" writes to memory.
--
# Thanks;
# Bill Stewart, AT&T Bell Labs 2G218, Holmdel NJ 1-201-949-0705 ihnp4!ho95c!wcs
# skep2 is a local machine I'm trying to turn into a server. Please send
# mail to ho95c or ho95e instead. Thanks.
More information about the Comp.lang.c
mailing list