From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 6BE943F742 for ; Mon, 11 Mar 2002 13:35:34 -0500 (EST) Received: from lacrosse.corp.redhat.com (IDENT:root@lacrosse.corp.redhat.com [172.16.52.154]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g2BIZX513235 for ; Mon, 11 Mar 2002 13:35:33 -0500 Received: (from mail@localhost) by lacrosse.corp.redhat.com (8.11.6/8.9.3) id g2BIZXH06959 for axp-list@listman.redhat.com; Mon, 11 Mar 2002 13:35:33 -0500 Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g2BIZXR06953 for ; Mon, 11 Mar 2002 13:35:33 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by localhost.localdomain (8.11.6/8.11.6) with SMTP id g2BIZX513231 for ; Mon, 11 Mar 2002 13:35:33 -0500 Received: from handhelds.org ([192.58.209.91]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g2BIYCc27400 for ; Mon, 11 Mar 2002 13:34:12 -0500 Received: (qmail 20903 invoked from network); 11 Mar 2002 18:35:06 -0000 Received: from unknown (HELO shadowfax.middleearth) (127.0.0.1) by 0 with SMTP; 11 Mar 2002 18:35:06 -0000 From: George France To: axp-list@redhat.com, "W Bauske" Subject: Re: Compaq C Compiler Date: Mon, 11 Mar 2002 13:33:51 -0500 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="us-ascii" References: <02030923503000.06143@shadowfax.middleearth> <3C8B0498.BCFCAD38@paralleldata.com> In-Reply-To: <3C8B0498.BCFCAD38@paralleldata.com> MIME-Version: 1.0 Message-Id: <02031113335101.24094@shadowfax.middleearth> Content-Transfer-Encoding: 8bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: 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