Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!uxc.cso.uiuc.edu!garcon!uicsrd.csrd.uiuc.edu!mcdaniel From: mcdaniel@uicsrd.csrd.uiuc.edu (Tim McDaniel) Newsgroups: comp.lang.c Subject: Re: software delays (was: LINT won't do your debugging for you) Message-ID: <1530@garcon.cso.uiuc.edu> Date: 22 Jul 89 18:54:22 GMT References: <713@srhqla.SR.COM> <3588@cps3xx.UUCP> <12724@bloom-beacon.MIT.EDU> <1640@frog.UUCP> Sender: news@garcon.cso.uiuc.edu Reply-To: mcdaniel@uicsrd.csrd.uiuc.edu (Tim McDaniel) Organization: Center for Supercomputing R&D (Cedar), U. of Ill. Lines: 18 In article <1640@frog.UUCP> john@frog.UUCP (John Woods) writes: > The faster IOP version uses > #define STALL waste++ ... >Of course, some day the compiler is likely to notice that all of those >increments can be bundled up into a "waste += 32" at the end of the function >and then we'll be stuck... :-) /* #define volatile /* use if non-pANS C compiler */ volatile int waste = 0; -- "Let me control a planet's oxygen supply, and I don't care who makes the laws." - GREAT CTHUHLU'S STARRY WISDOM BAND (via Roger Leroux) __ \ Tim, the Bizarre and Oddly-Dressed Enchanter \ mcdaniel@uicsrd.csrd.uiuc.edu /\ mcdaniel%uicsrd@{uxc.cso.uiuc.edu,uiuc.csnet} _/ \_ {uunet,convex,pur-ee}!uiucuxc!uicsrd!mcdaniel