* Latest egcs snapshot boosts Fortran (g77) performance on Alpha's
@ 1997-11-01 5:00 Toon Moene
1997-11-01 5:00 ` Greg Lindahl
0 siblings, 1 reply; 4+ messages in thread
From: Toon Moene @ 1997-11-01 5:00 UTC (permalink / raw)
Hi All,
The performance of g77 generated binaries on Alpha's has been lacking, ever
since we got it working on this architecture (g77-0.5.20).
Two people independently pointed out to me what was wrong: David
Mosberger-Tang and Claus Denk, an Alpha-alpha :-) tester of g77.
It turned out that array index computations were carried out in plain INTEGER
arithmetic, whereas the final address computation is done in the `mode'
(gcc-speak for "type") of pointers, which is 64 bits on Alpha's. Therefore,
conversion instructions were generated in the intermediate code which
prohibited the normal optimisations on array index calculations.
This was somewhere in late June. I promised to look into it and actually
discussed the matter on the gcc backend mailing list.
Unfortunately, this didn't lead to a solution. With the creation of the EGCS
(experimental GNU compiling system) effort, a new opportunity to take this up
appeared. And indeed, after a week of intermittent discussion on the EGCS
mailing list, Richard Henderson came up with two patches (one to the g77
front end - the Fortran specific part of g77) and one to the (general)
backend of the compiler. Furthermore, Jeff Law upgraded the
`loop-optimising' part of the compiler to do an even better job.
These improvements went into the latest snapshot of egcs (see
http://www.cygnus.com/egcs) for everyone to try out.
However, do realise that this is a snapshot, so don't use it for production
work.
To give you a flavor of the sort of improvement one gets, I just checked with
the CFD benchmark by Patrick Queutey
(http://perso.club-internet.fr/queutey/Linux/Bench/bench.html, the 21x21x21
case). Before the change, on Greg Lindahl's 500 Mh 21164 based machine, I
got around 10 seconds on this benchmark, now I get:
3.73user 0.01system 0:07.79elapsed 48%CPU (0avgtext+0avgdata 0maxresident)k
3.57user 0.01system 0:08.07elapsed 44%CPU (0avgtext+0avgdata 0maxresident)k
3.77user 0.01system 0:08.55elapsed 44%CPU (0avgtext+0avgdata 0maxresident)k
3.64user 0.01system 0:07.26elapsed 50%CPU (0avgtext+0avgdata 0maxresident)k
Hope this is of interest.
PS: Special thanks to Greg Lindahl to offer me access to an Alpha for looking
into this problem !
--
Toon Moene (mailto:toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: mailto:fortran@gnu.org; NWP: http://www.knmi.nl/hirlam
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Latest egcs snapshot boosts Fortran (g77) performance on Alpha's
1997-11-01 5:00 Latest egcs snapshot boosts Fortran (g77) performance on Alpha's Toon Moene
@ 1997-11-01 5:00 ` Greg Lindahl
1997-11-02 5:00 ` Toon Moene
1997-11-06 5:00 ` Dave Love
0 siblings, 2 replies; 4+ messages in thread
From: Greg Lindahl @ 1997-11-01 5:00 UTC (permalink / raw)
Toon Moene <toon@moene.indiv.nluug.nl> writes:
> And indeed, after a week of intermittent discussion on the EGCS
> mailing list, Richard Henderson came up with two patches (one to the g77
> front end - the Fortran specific part of g77) and one to the (general)
> backend of the compiler. Furthermore, Jeff Law upgraded the
> `loop-optimising' part of the compiler to do an even better job.
Is there a chance of getting these changes into the old gcc source
tree? I believe that you have fixed 1-D arrays in the old gcc source
tree already. Alternately, if you could make up a good README on
how to install just g77 without clobbering your existing gcc/g++
installation, that would be very handy.
-- greg
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Latest egcs snapshot boosts Fortran (g77) performance on Alpha's
1997-11-01 5:00 ` Greg Lindahl
@ 1997-11-02 5:00 ` Toon Moene
1997-11-06 5:00 ` Dave Love
1 sibling, 0 replies; 4+ messages in thread
From: Toon Moene @ 1997-11-02 5:00 UTC (permalink / raw)
lindahl@cs.virginia.edu (Greg Lindahl) wrote:
> Is there a chance of getting these changes into the old gcc source
> tree? I believe that you have fixed 1-D arrays in the old gcc source
> tree already. Alternately, if you could make up a good README on
> how to install just g77 without clobbering your existing gcc/g++
> installation, that would be very handy.
Well, of course, as the "manifesto" on the egcs home page says: All
improvements will be presented to the gcc2 maintainers - however, it's their
decision on whether the code goes in ...
Note on installation particulars: If you can spare the disk space, it's
normally a good idea to install snapshots (of whatever nature) in a
completely different directovy. I normally run `configure' as follows:
% cd egcs-971031
% ./configure --prefix=/usr/test
...
In that way it *cannot* conflict with your system's compiler. On my system,
this takes an extra 35 Mbyte.
--
Toon Moene (mailto:toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: mailto:fortran@gnu.org; NWP: http://www.knmi.nl/hirlam
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Latest egcs snapshot boosts Fortran (g77) performance on Alpha's
1997-11-01 5:00 ` Greg Lindahl
1997-11-02 5:00 ` Toon Moene
@ 1997-11-06 5:00 ` Dave Love
1 sibling, 0 replies; 4+ messages in thread
From: Dave Love @ 1997-11-06 5:00 UTC (permalink / raw)
>>>>> "Greg" == Greg Lindahl <lindahl@cs.virginia.edu> writes:
Greg> Alternately, if you could make up a good README on how to
Greg> install just g77 without clobbering your existing gcc/g++
Greg> installation, that would be very handy.
Yes. About to refer you to the relevant part of the manual, I find I
never wrote it :-( -- next week... (Toon's suggestion is obviously
best if you have the space.)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-11-06 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-11-01 5:00 Latest egcs snapshot boosts Fortran (g77) performance on Alpha's Toon Moene
1997-11-01 5:00 ` Greg Lindahl
1997-11-02 5:00 ` Toon Moene
1997-11-06 5:00 ` Dave Love
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox