Rupert Wood wrote:
Nicola Musatti wrote:
_main PROC
; 12 :char * b = "0123456789"; ; 13 : for ( int l = 0; l < 1
<< 30; ++l ) ; 14 : f(b, l); ; 15 : }
xor eax, eax ret0 _main ENDP
Note that it optimised away your whole program! I
David Edelsohn wrote:
Nicola,
Please send the project files to Robert Seacord.
Done.
Cheers,
Nicola
--
Nicola.Musatti gmail com
Home: http://nicola.musatti.googlepages.com/home
Blog: http://wthwdik.wordpress.com/
body is interested.
I also tested CodeGear (Borland)'s C++ Builder 2007 compiler and as far
as I can tell it doesn't perform this optimization. Maybe we should all
switch to their product ;-)
Cheers,
Nicola Musatti
--
Nicola.Musatti gmail com
Home: http://nicola.musatti.googlepages.com/home
Blog: http://wthwdik.wordpress.com/