>In such a case the code would no doubt run faster than the same code not 'optimized', but I think the "magic" of optimization probably doesn't extend to 'internally rewriting the programmer's code to run as fast as possible'.
Actually, it does. For an overview of some of the things modern compilers can do, check out
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvc60/html/optcode.asp
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up