From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e8d2c0ed82daf4da X-Google-Attributes: gid103376,public From: Mikko Levanto Subject: Re: Handling Addressing Errors Date: 1999/03/19 Message-ID: <36F21863.7D71@iki.fi>#1/1 X-Deja-AN: 456428660 Content-Transfer-Encoding: 7bit References: <1999Mar3.212443.1898@nosc.mil> <7bm0v3$933$1@nnrp1.dejanews.com> <1999Mar18.005620.19189@nosc.mil> <36F17DAC.E80F01DD@averstar.com> Content-Type: text/plain; charset=us-ascii Organization: Technical Research Centre of Finland Mime-Version: 1.0 Reply-To: mikko.levanto@vtt.fi Newsgroups: comp.lang.ada Date: 1999-03-19T00:00:00+00:00 List-Id: Tucker Taft wrote: > This is made explicit in RM95 C.6(20) and 1.1.3(13), which indicates > that the "external effect" of a program includes *each* > read and update of a volatile or atomic object. > It is illegal to optimize away an external effect (RM95 1.1.3(15)). Can optimization affect the number of accesses ? E.g., if A is volatile, does A := A + A; always cause two reads and one write? -- Mikko J. Levanto mailto:mikko.levanto@vtt.fi