Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: George France <france@handhelds.org>
To: axp-list@redhat.com, "W Bauske" <wsb@paralleldata.com>
Subject: Re: Compaq C Compiler
Date: Mon, 11 Mar 2002 13:33:51 -0500	[thread overview]
Message-ID: <02031113335101.24094@shadowfax.middleearth> (raw)
In-Reply-To: <3C8B0498.BCFCAD38@paralleldata.com>

On Sunday 10 March 2002 02:00, W Bauske wrote:
> And how much of your code's time is spent doing FP work? If it's not
> FP, I'd be curious what you're doing with Alphas and gaining lots
> of performance over gcc.
>

Hello Wes,

On Alpha systems most of my applications are cluster related and customer 
specific, so I can not really chat about them.  Overall, I do see about a 20% 
integer performance improvement with ccc over gcc 2.96.x.  I believe that gcc 
3.1.x when released may have improved integer performance on Alpha.  

I usually use:

ccc -arch ev6 -fast -O4 ONESTEP

-arch ev6
	I do not want to use the ev4/5 instruction set nor scheduling.

-fast
           Make certain that ccc is using the byte/word instructions.
          

As an example, I downloaded nbench 2.1 from 
http://www.tux.org/~mayer/linux/bmark.html and tried it against gcc 2.96 on a 
RH 7.0 system running on a Digital Personal Workstation 500a (EV5/6 500).  
Using the ccc compiler, but adding -fast, and using gcc with -O5 I get:

------------
ccc -fast -noifo -lm -DLINUX emfloat.c misc.c nbench0.c nbench1.c  
sysspec.c emfloat.c:
misc.c:
nbench0.c:
nbench1.c:
sysspec.c:
../a.out | tee -a stdout.log

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)

TEST                : Iterations/sec.  : Old Index   : New Index

                     :                  : Pentium 90* : AMD K6/233*

 --------------------:------------------:-------------:------------
 NUMERIC SORT        :          283.94  :       7.28  :       2.39
 STRING SORT         :          23.912  :      10.68  :       1.65
 BITFIELD            :      5.5362e+07  :       9.50  :       1.98
 FP EMULATION        :          21.819  :      10.47  :       2.42
 FOURIER             :           12810  :      14.57  :       8.18
 ASSIGNMENT          :          2.4346  :       9.26  :       2.40
 IDEA                :          479.47  :       7.33  :       2.18
 HUFFMAN             :          355.02  :       9.84  :       3.14
 NEURAL NET          :          7.5143  :      12.07  :       5.08
 LU DECOMPOSITION    :          182.77  :       9.47  :       6.84
 ==========================ORIGINAL BYTEMARK
 RESULTS========================== INTEGER INDEX       : 9.102
 FLOATING-POINT INDEX: 11.852
 Baseline (MSDOS*)   : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0
 ==============================LINUX DATA
 BELOW=============================== C compiler          : ccc-6.2.9.505-1
 Red Hat Linux release 7.0 (Guinness) libc                : glibc-2.1.95-2
 MEMORY INDEX        : 1.990
 INTEGER INDEX       : 2.508
 FLOATING-POINT INDEX: 6.574
 Baseline (LINUX)    : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3,
 libc-5.4.38 * Trademarks are property of their respective holder.

 ------------
 gcc -O5 -lm -DLINUX emfloat.c misc.c nbench0.c nbench1.c   sysspec.c
 ../a.out | tee -a stdout.log


 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)

 TEST                : Iterations/sec.  : Old Index   : New Index

                     :                  : Pentium 90* : AMD K6/233*

 --------------------:------------------:-------------:------------
 NUMERIC SORT        :          260.13  :       6.67  :       2.19
 STRING SORT         :          23.436  :      10.47  :       1.62
 BITFIELD            :      5.8679e+07  :      10.07  :       2.10
 FP EMULATION        :          12.505  :       6.00  :       1.38
 FOURIER             :            2004  :       2.28  :       1.28
 ASSIGNMENT          :          2.4413  :       9.29  :       2.41
 IDEA                :          530.37  :       8.11  :       2.41
 HUFFMAN             :          224.51  :       6.23  :       1.99
 NEURAL NET          :           1.751  :       2.81  :       1.18
 LU DECOMPOSITION    :          111.54  :       5.78  :       4.17
 ==========================ORIGINAL BYTEMARK
 RESULTS========================== INTEGER INDEX       : 7.934
 FLOATING-POINT INDEX: 3.334
 Baseline (MSDOS*)   : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0
 ==============================LINUX DATA
 BELOW=============================== C compiler          : gcc version 2.96
 20000731 (Red Hat Linux 7.0) libc                : glibc-2.1.95-2
 MEMORY INDEX        : 2.017
 INTEGER INDEX       : 1.952
 FLOATING-POINT INDEX: 1.849
 Baseline (LINUX)    : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3,
 libc-5.4.38 * Trademarks are property of their respective holder.


 This shows ccc to be about 20% faster integer and more than 300% faster
 float, very slightly slower in memory (by less than the claimed accuracy
 of the tests).

 I did not verify whether or not the results were correct...

 BTW, I did not use the Makefile, as that was the reason it didn't
 show useful information about the compiler and libc versions.
 Instead, I wrote a little sh script to compile/link/run using
 a specified compile/link command line in a fresh directory that
 it creates.

Every day I build the alpha toolchains (binutils, gcc (c, c++, etc...), 
glibc, gdb, etc...) from the head 2.95.x, 3.0.x and main gcc cvs trees.  If I 
get some time this week maybe I should write a script to run benchmarks on 
the results and compare them to ccc.  Does any body have some suggestions as 
to what would make good compiler benchmarks?

I hope this helps.

Best Regards,


--George




  reply	other threads:[~2002-03-11 18:35 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-08 22:30 Compaq C Compiler Ted Goodridge
2002-03-08 23:56 ` David Woodhouse
2002-03-09  0:42   ` Ted Goodridge, Jr
2002-03-09  1:04     ` Uncle George
2002-03-09  1:07 ` W Bauske
2002-03-10  4:50   ` George France
2002-03-10  7:00     ` W Bauske
2002-03-11 18:33       ` George France [this message]
2002-03-11 21:42         ` W Bauske
2002-03-11 22:51           ` Peter Petrakis
2002-03-12  0:54             ` W Bauske
2002-03-13  4:30               ` Peter Petrakis
  -- strict thread matches above, loose matches on Subject: below --
2002-03-11 18:22 William H. Magill
     [not found] <20020309170102.1A3BF3EF4F@listman.redhat.com>
2002-03-09 17:53 ` Stephen Lewis
     [not found] <20020308060803.4DB073F764@listman.redhat.com>
2002-03-08 19:01 ` Compaq C compiler Stephen Lewis
2002-03-07 19:42 Ted Goodridge, Jr
2002-03-07 19:53 ` Ross A Knepper
2002-03-07 21:56 ` Michal Jaegermann
2002-03-08  3:38   ` Ted Goodridge, Jr
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