On Wed, 28 May 2014, Regan, Brian (EPC COE) wrote:
It might have been clearer if I included the objdump disassembly:
It should be apparent below the difference when I force the unsuffixed
float to double (big value) and the second case where I have a
second(but smaller) unsuffixed double. Based on the ASNI item
highlighted in the original email (6.1.3.1 "An unsuffixed floating
constant has type double.") this difference is unexpected. The concern
is not a technical one - it is one of understanding and documenting the
deviation from the ANSI standard.
Then you may also want to document that the compiler sometimes replaces
1+1 by 2 (objdump won't show you any addition).
--
Marc Glisse