[Info-vax] decrementing & for loops in C

Tim E. Sneddon tesneddon at bigpond.com
Fri Jan 9 09:57:53 EST 2009


Bill Gunshannon wrote:
> In article <49667A6E.3050507 at nowhere.com>,
> 	nobody <nobody at nowhere.com> writes:
>> Turning off optimization should normally cause the program to execute 
>> your program exactly as written.
> 
> A program should always execute exactly as written.  No machine is smart
> enough to second guess the intent of a human.
> 

That is arguable. After your code has been optimised
it doesn't quite execute 'exactly as written'. The
end result might be 'exactly as written'. However, the
path to get there has been completely shuffled around
by the compiler.

Tim.



More information about the Info-vax mailing list