Optimization (was Re: volatile)
Dave Sill
dsill at NSWC-OAS.arpa
Fri Apr 22 23:31:41 AEST 1988
Terry Lambert writes:
>Basically, if it works without -O, it should work with -O, regardless of what
>the compiler writer's optimization does to achieve its goal. If this makes
>writing compilers harder, so what?
This bears repeating. There should be no circumstances under which
the semantics of the language are changed by a flag to the compiler.
=========
The opinions expressed above are mine.
"com pile ... vt ... com piled; com piling [ME compilen, fr. MF
compiler, fr. L compilare to plunder] ..."
-- Webster's Ninth New
Collegiate Dictionary
So *that's* where these gung-ho optimizer-writers get their
justification...
More information about the Comp.lang.c
mailing list