C optimizer

Dave Jones djones at megatest.UUCP
Thu Feb 16 13:56:35 AEST 1989


>From article <1398 at quanta.eng.ohio-state.edu>, by rob at kaa.eng.ohio-state.edu (Rob Carriere):

> 
> What seems to be missing is the idea that sleep *does* modify
> something, namely time.  So formally speaking, your compiler should
> consider sleep to have a side effect on a variable called __time.  If
> you do that, there's no problem.
> 


Huh?? 

% nm a.out | grep __time
%

Know what I mean?

On a time-shared system (such as Unix), does every instruction have
a side effect on a variable called __time?

Gimme a break.  (Or at least a sleep(300).)



More information about the Comp.lang.c mailing list