Optimization (was: Re^3: gotos)

Doug Gwyn gwyn at brl-smoke.ARPA
Tue May 3 23:53:44 AEST 1988


In article <487 at sas.UUCP> bts at sas.UUCP (Brian T. Schellenberger) writes:
>In any case, any quality implementation allows you turn off all optimization.

You've taken a somewhat simplistic view of optimization.  There is no well-
defined meaning for "turning off all optimization", since the C language
does not map one-to-one unambiguously onto machine language.  All C
compilers with which I am familiar, and very likely all serious compilers,
automatically perform certain code generation "optimizations" (these should
be called "improvements") that save both time and space over naive code
generation.  One virtually never has the option of disabling these.



More information about the Comp.lang.c mailing list