Hello,
I've developed a simulation model that compiles in both Delphi and Lazarus. The Lazarus version is a console application. When I run the Lazarus program on either Windows or Linux, it gives identical results. However, when I run the same model from a GUI developed in Delphi, it gives different results. The model is iterative, doing many sequential calculations where each set of calculations depends on the results from round of calculations. It's possible that it is due to the compounding effect of very small differences in the results generated by the different compilers. Of course, I may have some sort of mistake(s) in my code...
Note that both programs are double precision. I did see some differences between 32 and 64 bit in Delphi, but both the Lazarus and Delphi programs are 64 bit.
I'd be interested to hear if anyone has encountered this sort of thing before, or has any suggestions as to what is going on. I realize I'm a bit light on detail here - happy to elaborate if necessary.
Thanks, Ian