Re: long double support on 80x86 C++ Win32 compilers

mfinney@lynchburg.net
13 Aug 1998 21:54:57 -0400

          From comp.compilers

Related articles
long double support on 80x86 C++ Win32 compilers comments@cygnus-software.com (Bruce Dawson) (1998-08-10)
Re: long double support on 80x86 C++ Win32 compilers ak@muc.de (Andi Kleen) (1998-08-10)
Re: long double support on 80x86 C++ Win32 compilers michael_ross@ccm.intel.com (Michael Ross) (1998-08-10)
Re: long double support on 80x86 C++ Win32 compilers mfinney@lynchburg.net (1998-08-13)
Re: long double support on 80x86 C++ Win32 compilers comments@cygnus-software.com (Bruce Dawson) (1998-08-16)
| List of all articles for this month |

From: mfinney@lynchburg.net
Newsgroups: comp.compilers
Date: 13 Aug 1998 21:54:57 -0400
Organization: Lynchburg.net (lynchburg.net)
References: 98-08-061
Keywords: arithmetic, 386

Bruce Dawson <comments@cygnus-software.com> writes:


The IBM VisualAge C++ 4.0 beta compiler supports long double as 10-byte
fields in a 16-byte area (I think there is an option to change that, but am
not sure). The previous 3.5 compiler did the same, but did not have an
option to change the packing. The program below works as expected
except that %Lg is needed instead of %g. That is reasonable because %Lg
means long double and %g means double (as I understand it). That is
most likely the cause of the failure with GCC that John reported.


>[gcc 2.x stores 80 bits but prints garbage because %g expects 64 bit rather
>than 80 bit floats. -John]


Michael Lee Finney




--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.