🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #662

Re: volatile required?

#662
From: David T. Sandberg
Date: Wed, 04 Oct 1989 09:17
17 lines
1379 bytes
In article <756@crdos1.crd.ge.COM> davidsen@crdos1.UUCP (bill davidsen) writes:
:In article <16785@watdragon.waterloo.edu>, afscian@violet.waterloo.edu (Anthony Scian) writes:
:|  NO. This is a convenient type of oversight that allows so called
:|  "optimizing compilers" like Turbo C and Microsoft C to squeeze
:|  out extra performance from benchmarks.
:
:  I wrote a reply saying that MSC v4.85 and later didn't do this.
:Someone replied that if certainly did, if you use the -Oa option.

For the record, MSC 5.1 produces the correct results from the
original program snippet (4) even when compiling with either
the -Oa or the -Ox switch.

-- 
                                  David Sandberg - Quadric Systems
 "I began neglecting my shoes."   PSEUDO: dts@quad.uucp
                                  ACTUAL: ..uunet!rosevax!sialis!quad!dts
Technical Details
Message-ID: <299@quad.uucp>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!dogie.macc.wisc.edu!uwvax!umn-d-ub!umn-cs!nis!quad!dts
References: <712@Aragorn.dde.dk> <16785@watdragon.waterloo.edu> <756@crdos1.crd.ge.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!dogie.macc.wisc.edu!uwvax!umn-d-ub!umn-cs!nis!quad!dts
From: dts@quad.uucp (David T. Sandberg)
Newsgroups: comp.std.c
Subject: Re: volatile required?
Message-ID: <299@quad.uucp>
Date: 4 Oct 89 09:17:22 GMT
References: <712@Aragorn.dde.dk> <16785@watdragon.waterloo.edu> <756@crdos1.crd.ge.COM>
Reply-To: dts@quad.uucp (David T. Sandberg)
Organization: Quadric Systems, Richfield MN
Lines: 17