RE: VC.NET 'Optimization'
"Jon Watte" <[email protected]> Mon, 11 Apr 2005 15:24:03 -0700
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Message-ID | <[email protected]> |
> BTW: I'm not entirely sure whether that's a compiler bug or a valid > optimisation - it depends what your Restart() function does. The compiler might be doing type-based aliasing to re-order the functions, if one uses float, and the other int, say. However, I still don't see how the compiler can do this. Timers call into functions that are dllimport, and those functions can have arbitrary side effects -- especially in a version of the DLL that's not released yet. Thus, no amount of alias analysis can allow the compiler to re-order the operations like that, so I'd say it's a real bug. Now, if it's really a bug, how come we're not seeing this all over the place? Seems like it would cause pretty much nothing at all to actually work... 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