🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2804

Re: ++i++ in Plain English

#2804
From: Sean Eric Fagan
Date: Thu, 25 Apr 1991 17:43
17 lines
1323 bytes
In article <B_WAUIB@xds13.ferranti.com> 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.
Technical Details
Message-ID: <1991Apr25.174310.21264@kithrup.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!kithrup!sef
References: <FGTAV-9@xds13.ferranti.com> <3924@inews.intel.com> <B_WAUIB@xds13.ferranti.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <FGTAV-9@xds13.ferranti.com> <3924@inews.intel.com> <B_WAUIB@xds13.ferranti.com>
Organization: Kithrup Enterprises, Ltd.
Lines: 17