From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9701272148.AA07214@moene.indiv.nluug.nl> Date: Mon, 27 Jan 97 22:48:56 +0100 From: Toon Moene Subject: Re: compiler efficency Lev D Gelb wrote: > I have found similar problems between f2c+gcc and DEC > f77, that DEC f77 is 2x as fast as the converted code. > I believe that there is something terribly slow in the > libf77 that comes with f2c, because people in our group > have benchmarked gcc vs DEC cc on numerical C-codes, and > found only a 10-20% slowdown with gcc. > > Eagerly awaiting g77 version 0.5.20, which should have > Alpha support... Hmm, haven't seen anything by Craig yet, so lets jump in: The top entries of the plan file (finger -l fortran@gnu.ai.mit.edu): Currently planned for 0.5.20, intended to be a "development" version for some new features/workarounds: - Support DEC Alpha (AXP) chip (running Linux, primarily). (Done.) - Fix bugs in gcc back end (AXP support; loop unrolling crash). Package in g77 as patches to gcc-2.7.2 and 2.7.2.1. Submit for inclusion in gcc-2.8.0. (Done.) Besides, to say more about Claus's code example, we need a fully compilable program module; just a few lines out of context won't prove anything. Note, for instance, that the Digital compiler might throw the loop away, because (apparently) nothing is done with the result (gam) calculated inside .... If this is not the reason (:-) the speed difference might be caused by the fact that at the default optimisation level the Digital Fortran compiler unrolls loops, whereas g77/gcc won't do that (because this is a CPU architecture dependent optimisation). Hope this helps, -- 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.ai.mit.edu; NWP: http://www.knmi.nl/hirlam PS: Perhaps I should add that the g77 development group has the utmost confidence that Steve Lionel's team can counter all our attacks at being the "best" Fortran compiler for the Alpha plat- form. To us, frequent readers (and posters) to comp.lang.fortran he is *the* example to follow in precision and reasonableness when it comes to offering support via this unpaid-for medium ... -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com