From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,4c4e1add3e6e1767 X-Google-Attributes: gid111c93,public From: Randall Parker Subject: Re: Official Digital/Compaq Support for Linux Date: 1998/07/10 Message-ID: <35A55A1B.F1407FB1@west.net> X-Deja-AN: 370055579 References: <359c2adf.71443690@usenet.pa.dec.com> <35A3DFD2.830C136D@west.net> <6o1nuj$u4k@ilfb03.tuwien.ac.at> <6o2hak$44d$1@sparcserver.lrz-muenchen.de> Content-Type: multipart/alternative; boundary="------------BD80633C690A993B2D4238DA" Organization: remove _nospam to reply MIME-Version: 1.0 Reply-To: rgparker_nospam@west.net NNTP-Posting-Date: Thu, 09 Jul 1998 17:03:25 PDT Newsgroups: comp.os.linux.alpha --------------BD80633C690A993B2D4238DA Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Jeff, >From your example below it looks like DU C is faster at floating point. This is consistent with the complaints I hear from various friends who write simulations that do a lot of floating point. Not sure how much of that is due to the library vs the compiled source but one friend tells me he's not impressed with the register usage for floating point code. I wonder if anyone has done comparisons using Dhrystone and other commong non-floating benchmarks like SPECint95. Sounds like egcs HAIFA is the compiler to use on Linux. Jeff Lessem wrote: > henke@rocza.krall.org (Douglas G. Henke) writes: > > > Can anyone point me at similar comparisons (i.e. actual measurements) > > involving gcc vs. the DU C compiler (and/or other C compilers on Alpha)? > > I'd be especially interested in times for problems involving no > > floating point, and/or egc-1.0.3mumble with the HAIFA scheduler turned > > on. > > If you can point me towards some easy to compile code, I would not > mind building it up with DU C and gcc and comparing the results. > > In my own experience, I have found that for C programs some things are > faster with DU C, some things are faster with egcs/gcc, and some > things are the same with either compiler. I suppose this also has to > do with libm and libc issues. Some programs might also be bound by > cache and memory issues, so as long as the compiler and libraries can > hit the ceiling rate, they all will be the same speed. > > Here are the results of the BYTEmark benchmark with three different > compilers: > > BYTEmark* Native Mode Benchmark ver. 2 (10/95) > Index-split by Andrew D. Balsa (11/97) > Linux/Unix* port by Uwe F. Mayer (12/96,11/97) > > Iterations/sec. > TEST : gcc : DU C : egcs HAIFA > : 2.7.2.3 : (cc.alt) : 1.0.3a > --------------------:-------------:-------------:------------ > NUMERIC SORT : 157.99 : 171.2 : 162.84 > STRING SORT : 17.461 : 17.977 : 18.158 > BITFIELD : 5.7397e+07 : 6.1158e+07 : 5.7238e+07 > FP EMULATION : 12.619 : 18.602 : 20.655 > FOURIER : 1711.6 : 11171 : 1694.3 > ASSIGNMENT : 1.5839 : 1.6188 : 1.9614 > IDEA : 513.25 : 579.78 : 627.48 > HUFFMAN : 228.39 : 311.5 : 276.61 > NEURAL NET : 2.318 : 5.026 : 2.5567 > LU DECOMPOSITION : 87.454 : 135.19 : 88.779 > ==========================ORIGINAL BYTEMARK RESULTS========================== > > gcc 2.7.2.3 > CFLAGS=-O6 -Wa,-m21164a -static > MEMORY INDEX : 1.572 > INTEGER INDEX : 1.721 > FLOATING-POINT INDEX: 1.776 > > cc.alt (cc) Driver 3.11 DEC C V5.4-045 on Digital UNIX V4.0 (Rev. 564) > CFLAGS=-non_shared -fast -om -tune ev56 -arch pca56 > MEMORY INDEX : 1.633 > INTEGER INDEX : 2.155 > FLOATING-POINT INDEX: 4.967 > > egcs-2.90.29 980515 (egcs-1.0.3 release) with HAIFA > CFLAGS=-O6 -mcpu=21164a -Wa,-m21164a -static -funroll-loops > MEMORY INDEX : 1.708 > INTEGER INDEX : 2.163 > FLOATING-POINT INDEX: 1.838 > > Platform: Digital AlphaPC 164SX 533 MHz 384MB > Linux 2.1.106 > RedHat 5.0 > > -- > Jeff Lessem. --------------BD80633C690A993B2D4238DA Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Jeff,

From your example below it looks like DU C is faster at floating point. This is consistent with the complaints I hear from various friends who write simulations that do a lot of floating point. Not sure how much of that is due to the library vs the compiled source but one friend tells me he's not impressed with the register usage for floating point code.

I wonder if anyone has done comparisons using Dhrystone and other commong non-floating benchmarks like SPECint95.

Sounds like egcs HAIFA is the compiler to use on Linux.

Jeff Lessem wrote:

henke@rocza.krall.org (Douglas G. Henke) writes:

> Can anyone point me at similar comparisons (i.e. actual measurements)
> involving gcc vs. the DU C compiler (and/or other C compilers on Alpha)?
> I'd be especially interested in times for problems involving no
> floating point, and/or egc-1.0.3mumble with the HAIFA scheduler turned
> on.

If you can point me towards some easy to compile code, I would not
mind building it up with DU C and gcc and comparing the results.

In my own experience, I have found that for C programs some things are
faster with DU C, some things are faster with egcs/gcc, and some
things are the same with either compiler.  I suppose this also has to
do with libm and libc issues.  Some programs might also be bound by
cache and memory issues, so as long as the compiler and libraries can
hit the ceiling rate, they all will be the same speed.

Here are the results of the BYTEmark benchmark with three different
compilers:

BYTEmark* Native Mode Benchmark ver. 2 (10/95)
Index-split by Andrew D. Balsa (11/97)
Linux/Unix* port by Uwe F. Mayer (12/96,11/97)

                                Iterations/sec.
TEST                : gcc         : DU C        : egcs HAIFA
                    : 2.7.2.3     : (cc.alt)    : 1.0.3a
--------------------:-------------:-------------:------------
NUMERIC SORT        :     157.99  :      171.2  :     162.84
STRING SORT         :     17.461  :     17.977  :     18.158
BITFIELD            : 5.7397e+07  : 6.1158e+07  : 5.7238e+07
FP EMULATION        :     12.619  :     18.602  :     20.655
FOURIER             :     1711.6  :      11171  :     1694.3
ASSIGNMENT          :     1.5839  :     1.6188  :     1.9614
IDEA                :     513.25  :     579.78  :     627.48
HUFFMAN             :     228.39  :      311.5  :     276.61
NEURAL NET          :      2.318  :      5.026  :     2.5567
LU DECOMPOSITION    :     87.454  :     135.19  :     88.779
==========================ORIGINAL BYTEMARK RESULTS==========================

gcc 2.7.2.3
        CFLAGS=-O6 -Wa,-m21164a -static
        MEMORY INDEX        : 1.572
        INTEGER INDEX       : 1.721
        FLOATING-POINT INDEX: 1.776

cc.alt  (cc) Driver 3.11 DEC C V5.4-045 on Digital UNIX V4.0 (Rev. 564)
        CFLAGS=-non_shared -fast -om -tune ev56 -arch pca56
        MEMORY INDEX        : 1.633
        INTEGER INDEX       : 2.155
        FLOATING-POINT INDEX: 4.967

egcs-2.90.29 980515 (egcs-1.0.3 release) with HAIFA
        CFLAGS=-O6 -mcpu=21164a -Wa,-m21164a -static -funroll-loops
        MEMORY INDEX        : 1.708
        INTEGER INDEX       : 2.163
        FLOATING-POINT INDEX: 1.838

Platform: Digital AlphaPC 164SX 533 MHz 384MB
          Linux 2.1.106
          RedHat 5.0

--
Jeff Lessem.

  --------------BD80633C690A993B2D4238DA--