I have a software that does massive calculations on doubles and it has to run on linux and windows. I do not care about what behavior is used (faster is better), but it is mandatory that I get the same results on both platform.
I am compiling with x86_64-w64-mingw32 gcc version 4.9.2 on windows 10. And x86_64-linux-gnu gcc 4.9.3 on xubuntu.
I've tried using the following compile options: -frounding-math -fno-rounding-math -ffloat-store on both systems and nothing seems to work.
I know a bit about the complexity of floating-point representation but should it really be that hard to force the same behavior for a software that has to be cross platform?