Volatile (was Re: observability)
Felix Lee
flee at shire.cs.psu.edu
Fri Sep 15 12:51:29 AEST 1989
In <7330001 at hpfcso.HP.COM>,
Mike McNelly <mike at hpfcso.HP.COM> writes:
> Ah, but any compiler that has optimization capabilities that would allow
> it to nullify a useless program invariably does not do such optimization
> unless you ask for it with flags such as -O.
Bad assumption. The High C compiler (on IBM RTs) always does at least
trivial optimization. Warnings like "Expression has no side effects"
and "Variable is never referenced" mean relevant code has disappeared.
--
Felix Lee flee at shire.cs.psu.edu *!psuvax1!flee
More information about the Comp.std.c
mailing list