the result is different in debug and release project.

facat facat felixdu@gmail.com
Sun Apr 17 14:58:00 GMT 2011


Recently i was faced up with a strange problem. When I built my
project in debug mode, the result was totally wrong. When in release
mode, the the result was perfectly right.
I was confused why the result was different in debug mode and release
mode ? Did i invoke any bug in gcc?
I was using Code Block 10.5, a  IDE which has gcc 4.4.
The result was right even when I changed the template argument to
float. but it executed more loops than the release one, which still
meant the debug one and release one were different.
I compiled my project in my friend's computer. He has a AMD cpu and
64bit Win7. to my surprise, the result of my debug project was right.
Then i compliled my project in another 32bit XP system. the result in
my debug project was wrong.
Because I'm using 32bit Win7, so I guess this strange problem is a bug
within 32bit windows system.
My project is in the address below:
http://sharesend.com/qrann
 There are some eastern characters in my files. They are my notes, so
just ignore them.



More information about the Libstdc++ mailing list