Shouldn't ANSI have provided nonvolatile instead of volatile?

Henry Spencer henry at utzoo.uucp
Fri Feb 9 03:24:40 AEST 1990


In article <1117.18:37:35 at stealth.acf.nyu.edu> brnstnd at stealth.acf.nyu.edu (Dan Bernstein) writes:
>The default case should be the safe one.

No, the default case should be the one people usually want, which is "no
funny stuff going on, feel free to optimize".  This is, in any case, what
most C compilers have done by default all along (with the result that
elaborate trickery was sometimes needed to get the effect of volatile),
so there is no sudden drop in safety.
-- 
SVR4:  every feature you ever |     Henry Spencer at U of Toronto Zoology
wanted, and plenty you didn't.| uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list