Article View: comp.arch
Article #22052Re: Compilers and programming style (was Re: A question of style)
From: Tim Olson
Date: Wed, 10 Jan 1990 23:24
Date: Wed, 10 Jan 1990 23:24
20 lines
1330 bytes
1330 bytes
In article <540@bbxsda.UUCP> scott@bbxsda.UUCP (Scott Amspoker) writes: | In article <28716@amdcad.AMD.COM> tim@amd.com (Tim Olson) writes: | >The integer pointed to by p should be accessed from memory and thrown | >away (this may be useful in talking to certain peripheral devices). | |By "should" I assume you mean that this is in the ANSI specification? That's how I read section 2.1.2.3 (Program exection), which says: In the abstract machine, all expressions are evaluated as specified by the semantics. An actual implementation need not evaluate part of an expression if it can deduce that its value is not used and that no needed sde effects are produced (including any caused by calling a function or accessing a volatile object). -- Tim Olson Advanced Micro Devices (tim@amd.com)
Technical Details
Message-ID:
<28734@amdcad.AMD.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!amdcad!nucleus.amd.com!timShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!amdcad!nucleus.amd.com!tim From: tim@nucleus.amd.com (Tim Olson) Newsgroups: comp.arch Subject: Re: Compilers and programming style (was Re: A question of style) Message-ID: <28734@amdcad.AMD.COM> Date: 10 Jan 90 23:24:16 GMT Sender: news@amdcad.AMD.COM Reply-To: tim@nucleus.amd.com (Tim Olson) Organization: Advanced Micro Devices, Inc., Austin, Texas Lines: 20