volatile required?
David T. Sandberg
dts at quad.uucp
Wed Oct 4 19:17:22 AEST 1989
In article <756 at crdos1.crd.ge.COM> davidsen at crdos1.UUCP (bill davidsen) writes:
:In article <16785 at watdragon.waterloo.edu>, afscian at 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 at quad.uucp
ACTUAL: ..uunet!rosevax!sialis!quad!dts
More information about the Comp.std.c
mailing list