> Peter Laman wrote:
> > I NEVER switch optimization on for a production version.

> Interesting. I never switch optimization off, even while debugging.

Having optimization on when debugging make things much more difficult. You can 
watch all variable
values, some lines are shortcircuited.

> Can you demonstrate a case in which the optimization
> setting affects a program's output ?

This shouldn't but the compiler sometimes doesn't generate the right code (yes, 
there are bugs).

I also never turn on optimizations. But mostly because I use instruments in the 
code to have
diagnostic when program crashes. You have better diagnotic with debugging 
information on and
optimization off.

--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to