RE: VC.NET 'Optimization'

"Jon Watte" <[email protected]> Mon, 11 Apr 2005 18:05:33 -0700
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
> If it's in the same source file, it might even know that the function 
> has no aliasing issues. 

I think this is the key -- it couldn't know whether the functions used 
internally to the timer instance would be aliased by fibonacci() unless 
it had the source to that function.

Did you look at the assembly? It might even be that the compiler 
replaces the call to the function with a pre-calculated value, as it's 
entirely constant. That would surprise me less than a function call 
re-ordering optimization...

Cheers,

			/ h+



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555