From: "C.Simmendinger" <chrisi@theo1.physik.uni-stuttgart.de>
Subject: Re: gcc/egcs C optimization
Date: 1998/11/06 [thread overview]
Message-ID: <3642E8D8.6ED1849F@theo1.physik.uni-stuttgart.de> (raw)
In-Reply-To: 71t89b$221$5@newnews.nl.uu.net
Toon Moene wrote:
> "C.Simmendinger" <chrisi@theo.physik.uni-stuttgart.de> wrote:
>
> The cause is not exactly known - it is related to the way complex numbers are
> treated in the "middle-end" of the compiler, i.e. as a (real, imag) pair. On
> 64-bit hosts (Alpha, MIPS-4000 and higher, UltraSPARC, etc.) a COMPLEX number
> is a 2x32 bits entity, which (for optimisation purposes) sometimes is treated
> as a single 64 bit quantity. When storing/retrieving this from memory that's
> not a problem - however, when trying to stuff a COMPLEX number in a 64 bit
> register, you're asking for trouble.
>
> The corollary of this is that for DOUBLE COMPLEX, this shouldn't be an issue.
> Unfortunately, although I haven't seen evidence of the contrary, I cannot
> proof this.
>
Thx !
Sounds reasonable. Moreover it seems to work ;-)
Haven't tested performance yet, but will do so.
Uhm, btw. ...
I have a *request* concerning egcs.
Think i'm speaking for a vast majority.
Most fortran code these days is used on fast
numbercrunchers i.e. alpha and above (cray, nec, whatever)
(one reason for fortran is that it can be easily vectorized)
Now to my request/suggestion:
The compilers on those machines all are able to
convert single-> double and the same for complex with some
compiler flag. Unfortunately egcs lacks this ?
Of coz you might argue that i'm just a lazy boy,
but if you are dealing with some 10k lines of
fortran code this becomes real work, since
you also need to change constants plus
all conversions kind=1->kind=2 ...
This flag might then also turn off -femulate-complex ?
Uhm, btw, this is just something on the wishlist ;-)
Christian
next prev parent reply other threads:[~1998-11-06 5:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-31 5:00 gcc/egcs C optimization Berk Sensoy
1998-11-02 5:00 ` Conrad Sanderson
1998-11-02 5:00 ` Murx
1998-11-03 5:00 ` Adam C. Powell, IV
1998-11-03 5:00 ` Greg Lindahl
1998-11-04 5:00 ` Steven G. Johnson
1998-11-04 5:00 ` C.Simmendinger
1998-11-04 5:00 ` Craig Burley
1998-11-04 5:00 ` Greg Lindahl
1998-11-05 5:00 ` C.Simmendinger
1998-11-05 5:00 ` Greg Lindahl
1998-11-05 5:00 ` C.Simmendinger
1998-11-05 5:00 ` Toon Moene
1998-11-06 5:00 ` C.Simmendinger [this message]
1998-11-06 5:00 ` C.Simmendinger
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox