Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Donald K.Sinclair <dks@sgi9.hep.anl.gov>
Subject: Re: gcc vs Dec Unix c
Date: 1998/01/14	[thread overview]
Message-ID: <69h2g1$s4t@milo.mcs.anl.gov> (raw)
In-Reply-To: 884364975.2133262340@dejanews.com


I decided to try your test on my 600Mhz Alpha PC164LX in fortran rather than
C. I performed the test in both 32 and 64 bit precision. The 64 bit version of
the code I ran (costest.f) was:

      real*8 x,y
      x=1.2345d0
      y=0.567d0

      do 1 n=1,100000000
      x=x+0.001d0
      y=y+dcos(x)
1     continue

      write(6,*) y

      stop
      end

I compiled it using both the egcs-1.0 g77, and the Microway NDP fortran 
compilers using respectively:

       g77 -O5 costest.f

and

       mf77 -O5 -fastlib contest.f

The egcs/g77 code took 50.7 seconds to execute in 32bit arithmetic and 51.4
seconds in 64 bit arithmetic (does this mean that their 32bit cos routine
actually uses the 64bit routine?).

The Microway NDP code took 15.5 seconds to execute in 32bit arithmetic and
29.2 seconds in 64bit arithmetic.

Perhaps the suggestion made by others that fortran is the language of choice
is correct.

                                                Don Sinclair.




  parent reply	other threads:[~1998-01-14  5:00 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-08  5:00 gcc vs Dec Unix c fonte
1998-01-09  5:00 ` Toon Moene
1998-01-09  5:00 ` Toon Moene
1998-01-09  5:00 ` Jaap Schellekens
1998-01-09  5:00   ` cekim
1998-01-09  5:00     ` Peter Mardahl
1998-01-09  5:00       ` Craig Burley
1998-01-10  5:00       ` cekim
1998-01-10  5:00         ` Craig Burley
1998-01-13  5:00           ` cekim
1998-01-13  5:00             ` Craig Burley
1998-01-13  5:00               ` [++] x86 FCOS (Was: Re: gcc vs Dec Unix c) Terje Mathisen
1998-01-13  5:00                 ` Andy Glew
1998-01-14  5:00                   ` Terje Mathisen
1998-01-13  5:00               ` gcc vs Dec Unix c James Van Buskirk
1998-01-14  5:00                 ` brianh
1998-01-14  5:00                   ` James Van Buskirk
1998-01-13  5:00             ` Rob Komar
1998-01-13  5:00             ` Yan-Song Chen
1998-01-13  5:00               ` Greg Lindahl
1998-01-15  5:00               ` Lupo LeBoucher
1998-01-15  5:00                 ` Greg Lindahl
1998-01-14  5:00             ` bmeyer
1998-01-15  5:00               ` cekim
1998-01-14  5:00     ` Donald K.Sinclair [this message]
1998-01-14  5:00       ` Rob Komar
1998-01-16  5:00         ` Torbjorn Lindgren
1998-01-17  5:00           ` Rob Komar
1998-01-14  5:00       ` cekim
1998-01-09  5:00 ` Toon Moene
  -- strict thread matches above, loose matches on Subject: below --
1998-01-13  5:00 Robert Harley
1998-01-14  5:00 ` cekim
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