difference in calculation result when using gcc vs Visual studio and optimisation flag
Andrew Haley
aph@redhat.com
Thu Apr 26 09:58:00 GMT 2018
On 04/26/2018 10:26 AM, Jack Andrews wrote:
> Maybe I'm being idealistic, but why should optimization change results?â
Most likely, the program is undefined. There are other possibilities
to do with floating-point arithmetic. Sometimes a buggy compiler.
--
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the Gcc-help
mailing list