C optimizer

John Gateley gateley at m2.csc.ti.com
Mon Feb 20 12:52:06 AEST 1989


In article <1416 at quanta.eng.ohio-state.edu> rob at kaa.eng.ohio-state.edu (Rob Carriere) writes:
<In article <2008 at goofy.megatest.UUCP> djones at megatest.UUCP (Dave Jones) writes:
<>On a time-shared system (such as Unix), does every instruction have
<>a side effect on a variable called __time?

<Of course.  And on any non-time shared system as well.  The poster to
<whom I was replying considered the passage of time a side effect.  If
<that is the case, you'd bloody well better model it as part of the
<system state.

The definition of sleep involves passage of time, but the definition
of everything else does not. So, even though sleep has a side effect,
if, while, for, etc. do not have the same side effect (though they
may have others).

John
gateley at tilde.csc.ti.com



More information about the Comp.lang.c mailing list