A different view of volatile
Chris Torek
chris at mimsy.UUCP
Fri May 6 02:55:21 AEST 1988
In article <178 at wyse.wyse.com> mikew at wyse.wyse.com writes:
>It seems that volatile is ill-defined when combined with operators
>that operate in-place.
More than that, volatile is ill-defined *always*: on a machine
with only halfword load and stores, a fullword `a = 0' is not atomic.
Remember, though, that `ill-defined' does not mean `useless'. The
following is ill-defined:
struct rkdevice *rkaddr = (struct rkdevice *)0777440;
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at mimsy.umd.edu Path: uunet!mimsy!chris
More information about the Comp.lang.c
mailing list