From: Claus Denk <denk@servix.us.es>
Subject: Re: compiler efficency
Date: Tue, 28 Jan 1997 12:22:34 +0100 [thread overview]
Message-ID: <199701281122.MAA22192@servix.us.es> (raw)
Toon Moene <toon@moene.indiv.nluug.nl> wrote:
> - Support DEC Alpha (AXP) chip (running Linux, primarily).
> (Done.)
This sounds fine. When 0.5.20 will be released I'll give it a try.
> 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.
Here you go: ( I was just posting the loop, as this is where almost all
the time is spent)
PROGRAM EULER
DOUBLE PRECISION GAM
GAM = 1.0d0
NMAX=100000000
DO I=2,NMAX
GAM=GAM+1.0d0/dble(I)
ENDDO
GAM = GAM - DLOG(dble(NMAX))
WRITE(*,*) GAM
WRITE(*,*) 'Exact: 0,57721566490153286060'
END
> 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).
Tests were done with -O3 on both gcc and f77. I got on a 433 Mhz 21164/Linux
gcc: 12.09 sec.
f77: 6.80 sec.
On a Pentium 133/Linux I get:
f2c+gcc: 40.58
g77 : 39.09
If anyone tries the program, please send me your results (Compiler/Options
Machine/OS), so I can add it to my list.
regards, Claus
--
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
next reply other threads:[~1997-01-28 11:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-28 11:22 Claus Denk [this message]
[not found] <9701282002.AA15294@moene.indiv.nluug.nl>
1997-01-29 0:10 ` compiler efficency Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
1997-01-28 23:23 Huw Davies
1997-01-28 20:02 Toon Moene
1997-01-27 22:41 Craig Burley
1997-01-27 22:15 Przemek Klosowski
1997-01-27 21:48 Toon Moene
1997-01-27 20:51 Robert Williams
1997-01-27 20:37 Claus Denk
1997-01-27 20:35 ` Brett McCormick
1997-01-27 20:37 ` Lev D Gelb
1997-01-27 21:15 ` Jim Nance
1997-01-27 22:13 ` Scott Locklin
1997-01-27 22:41 ` Michal Jaegermann
1997-01-27 23:35 ` Richard Henderson
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