From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,dbd28625c7f9e73e X-Google-Attributes: gid1164f8,public From: Thomas Leitner Subject: Re: gcc vs. cc on Alpha: what's the latest? Date: 1997/02/24 Message-ID: <5erkra$6pc@fstgal00.tu-graz.ac.at>#1/1 X-Deja-AN: 221017280 Distribution: world References: <5ei8cj$4js$1@news.fas.harvard.edu> <5eldto$c4p$1@mrnews.mro.dec.com> Organization: Graz University of Technology, Austria Newsgroups: comp.sys.dec Michael Champigny wrote: > GB (berriz@husc.harvard.edu) wrote: > : A couple of months ago, I heard rumors that gcc produced significantly > : slower executables for DEC's Alpha platform under Linux than those > : produced by the native compiler under Digital Unix (for the same > : hardware). Is this rumor (still) correct? Does anybody know of any > : published comparison benchmarks? > I don't have any numbers to show you, but I've compiled many programs > on both Linux/AXP and Digital Unix. The code produced by cc on DEC Unix > is noticably faster than that generated by gcc. :-( That's true. This is on Digital Unix 4.0B with gcc 2.7.2: $ gcc -O3 -o dhry.gcc -DTIME -DREG=register dhry_1.c dhry_2.c $ cc -O4 -fast -o dhry.cc -DTIME -DREG=register dhry_1. c dhry_2.c $ ./dhry.gcc Dhrystone Benchmark, Version 2.1 (Language: C) Program compiled with 'register' attribute Please give the number of runs through the benchmark: 10000000 Execution starts, 10000000 runs through Dhrystone [...] Microseconds for one run through Dhrystone: 2.6 Dhrystones per Second: 384615.4 <------- GCC $ ./dhry.cc Dhrystone Benchmark, Version 2.1 (Language: C) Program compiled with 'register' attribute Please give the number of runs through the benchmark: 10000000 Execution starts, 10000000 runs through Dhrystone [...] Microseconds for one run through Dhrystone: 2.0 Dhrystones per Second: 500000.0 <------- CC Tom -- -------------------------------------------------------------------------- T o m L e i t n e r Dept. of Communications Graz University of Technology, e-mail : tom@finwds01.tu-graz.ac.at Inffeldgasse 12 Phone : +43-316-873-7455 A-8010 Graz / Austria / Europe Fax : +43-316-463-697 Home page : http://wiis.tu-graz.ac.at/people/tom.html PGP public key on : ftp://wiis.tu-graz.ac.at/pgp-keys/tom.asc or send mail with subject "get Thomas Leitner" to pgp-public-keys@keys.pgp.net --------------------------------------------------------------------------