Re: difference in calculation result when using gcc vs Visual studio and optimisation flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux