Gordon Burditt wrote: [...]
What is "no optimization"? Ok, most compilers have their own way
of not requesting optimization (except arguably for those that don't
offer any optimization to not request - I don't know of any but
there probably are some), but there's no standard for that and one
compiler's idea of "no optimization" might be quite optimized
compared with that of another compiler.
Has anyone used the phrase "no optimization"? If so, you should have
quoted the text where that phrase was used.
The phrase "Zero Optimization" is in the subject line of this message,
and Christian has used the phrase "code that works, without being
optimised". I think there has been some confusion about whether the
discussion is about optimization of the source code performed by the
developer, or optimization of the executable code performed by the
compiler+linker. However, I think we have all been referring to the
same basic idea: code where no special effort has been exerted to
optimize it. In the case of the source code, highly experienced
programmers write, without exerting any special effort, source code
that is heavily optimized compared to that produced by
newbies. Similarly, compilers differ greatly in how optimized their
code is at the lowest optimization level. So "Zero optimization" does
not refer to a clearly defined level of optimization, just to a
clearly defined level of effort expended.