Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!kithrup!sef From: sef@kithrup.COM (Sean Eric Fagan) Newsgroups: comp.std.c Subject: Re: ++i++ in Plain English Message-ID: <1991Apr25.174310.21264@kithrup.COM> Date: 25 Apr 91 17:43:10 GMT References: <3924@inews.intel.com> Organization: Kithrup Enterprises, Ltd. Lines: 17 In article peter@ficc.ferranti.com (Peter da Silva) writes: >I'd hate to have to write a device driver with that compiler, mate. >A compiler that sharp can cut you. That's the exact reason 'volatile' exists. You, as the programmer, know whether or not some memory location needs to be accessed, or whether a spin-loop (gag) needs to be there. I *like* my compiler to, at times, spend lots of cycles doing loop unrolling and elimination. It can be very useful at times. But, then, you do need some way of saying "can't touch this," which is what volatile provides, no? -- Sean Eric Fagan | "I made the universe, but please don't blame me for it; sef@kithrup.COM | I had a bellyache at the time." -----------------+ -- The Turtle (Stephen King, _It_) Any opinions expressed are my own, and generally unpopular with others.