Float multiplication - difference between assembly code with and without optimizer
Posted on 2004-03-29
I've recently encountered the following problem. I have a program written in C using Visual Studio 6.0. When run in Release version without optimization, the results of float multiplication are slightly different from those in Release version with Maximize speed.
I tried to look at assembly code, but was unable to find a difference. The problem is that when the program is compiled with optimization it is impossible to debug it, otherwise I would've looked at the registers.
So: is it true that Max Speed Optimizer affects the assembly code? If so, can I turn this specific feature off?
If it will be any help, I will post the relevant piece of source / assembly code by request.
P.S. This is a copy of the same question I posted in other sections. I'm aware of that, so please don't make special comments about it.