lkml.org 
[lkml]   [2000]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Preventing gcc from aligning stack???
Date
"H. Peter Anvin" <hpa@transmeta.com> writes:

> Tuukka Toivonen wrote:
> >
> > On 25 Jan 2000, H. Peter Anvin wrote:
> >
> > > The native fp format on IA32 is "long double" -- 80 bits (10 bytes).
> >
> > Yes, but this is not relevant here. The 10byte floating point is used in
> > practice only internally to the FPU. Yes, you can read and store it but
> > nobody does that, since it's so much slower than a normal float or double
> > (on Pentium, atleast).
> >
>
> You have to if you're going to spill a register.

you'd like to think so, wouldn't you.

i recall seeing an argument about this in the gcc/egcs list (about a
year ago) wrt g77 but i think it applied to all the gcc family of
compilers. fp register spills go into a 64 bit memory location. yes,
this loses precision. yes, this spill and subsequent loss of
precision is dependent upon the surrounding code, optimization level,
phase of the moon and is therefore hard to predict by the programmer.

besides, the x86 sucks at reading/storing 80 bit quantities. they are
hard to align and not waste space &c. welcome to the world of intel
architechure.

--
J o h a n K u l l s t a m
[kullstam@ne.mediaone.net]
Don't Fear the Penguin!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.053 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site