Size of long double
Peter Nordlund
petern@nada.kth.se
Tue Oct 6 07:00:00 GMT 1998
When I check the size of long double using sizeof, it turns out that the
size
is 8 bytes (wich is the same size as for double) when I use egcs.
When I use the Mipspro compiler on my Octane the size is 16 bytes.
The fact that the size is 8 bytes with egcs is causing me some trouble
with
TAU (a Real-time CORBA implementation)
http://siesta.cs.wustl.edu/~schmidt/TAO.html .
I know that having the size of long double == the size of double is ok
according to the
standard. Can someone tell me why egcs is using the same sizes for
long double and double and Mipspro doesn't?
To summarize my experiences of the size of long double:
On mips-sgi-irix6.4 with Mipspro the size is 16.
On mips-sgi-irix6.4 with egcs the size is 8.
On sparc-sun-solaris2.5.1 with egcs the size is 16.
On i686-pc-linux-gnulibc1 with egcs the size is 12.
Are there any configuration flags or something else that could change
the fact
that size of long double is 8 bytes with egcs on mips-sgi-irix6.4?
It seems like TAU assumes that the size of long double is 16 bytes, (I'm
not totally
sure of this yet, I have to investigate this matter further).
//Peter
More information about the Gcc
mailing list