🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1103

Re: Interpretation of volatile - two questions

#1103
From: Doug Gwyn
Date: Mon, 19 Mar 1990 23:01
10 lines
1062 bytes
In article <2604A628.8521@paris.ics.uci.edu> rfg@paris.ics.uci.edu (Ronald Guilmette) writes:
>does the standard (a) permit, (b) require, or (c) prohibit the assignment
>statement shown to access the c2 field of the "struct s" pointed to by
>memory_mapped_device_p?

It requires that the implementation document its rules for access to
volatile objects, which presumably should include cases of access to
such an object as a side effect of accessing a non-volatile one, as
in your example.  Obviously choice (b) would have been silly and
choice (c) would be an impossible constraint on some architectures.
Technical Details
Message-ID: <12382@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!ogicse!ucsd!ames!haven!adm!smoke!gwyn
References: <2604A628.8521@paris.ics.uci.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!ogicse!ucsd!ames!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: Interpretation of volatile - two questions
Message-ID: <12382@smoke.BRL.MIL>
Date: 19 Mar 90 23:01:45 GMT
References: <2604A628.8521@paris.ics.uci.edu>
Reply-To: gwyn@brl.arpa (Doug Gwyn)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 10