RE: [GD-Windows] VC.NET 'Optimization'
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2005-04-11 22:23:15
|
> 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+ |