Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!pyramid!prls!philabs!micomvax!ray From: ray@micomvax.UUCP (Ray Dunn) Newsgroups: comp.lang.c Subject: Re: A different view of volatile Message-ID: <1054@micomvax.UUCP> Date: 11 May 88 22:12:17 GMT References: <178@wyse.wyse.com> <11369@mimsy.UUCP> Reply-To: ray@micomvax.UUCP (Ray Dunn) Organization: Philips Electronics Ltd. (TDS - Montreal) St. Laurent QC, Canada Lines: 20 Posted: Wed May 11 18:12:17 1988 In article <11369@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >In article <178@wyse.wyse.com> mikew@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. > No....volatile is not ill defined, it is machine dependant, which is what you would expect it to be. There is no connection between "volatile" and "atomic", "volatile" does not imply "semaphore". -- Ray Dunn. | UUCP: ..!{philabs, mnetor}!micomvax!ray Philips Electronics Ltd. | TEL : (514) 744-8200 Ext: 2347 600 Dr Frederik Philips Blvd | FAX : (514) 744-6455 St Laurent. Quebec. H4M 2S9 | TLX : 05-824090