software delays (was: LINT won't do your debugging for you)

Tim McDaniel mcdaniel at uicsrd.csrd.uiuc.edu
Sun Jul 23 04:54:22 AEST 1989


In article <1640 at frog.UUCP> john at 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 at uicsrd.csrd.uiuc.edu
    /\       mcdaniel%uicsrd@{uxc.cso.uiuc.edu,uiuc.csnet}
  _/  \_     {uunet,convex,pur-ee}!uiucuxc!uicsrd!mcdaniel



More information about the Comp.lang.c mailing list