Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Thomas Leitner <tom@finwds01.tu-graz.ac.at>
Subject: Re: gcc vs. cc on Alpha: what's the latest?
Date: 1997/02/24	[thread overview]
Message-ID: <5erkra$6pc@fstgal00.tu-graz.ac.at> (raw)
In-Reply-To: 5eldto$c4p$1@mrnews.mro.dec.com


Michael Champigny <champign@cadosf.hlo.dec.com> 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
--------------------------------------------------------------------------



  reply	other threads:[~1997-02-24  5:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5ei8cj$4js$1@news.fas.harvard.edu>
1997-02-21  5:00 ` gcc vs. cc on Alpha: what's the latest? Paul Repacholi (prep)
1997-02-21  5:00   ` Ron Natalie
1997-02-21  5:00   ` Mark Hahn
1997-02-21  5:00     ` Timothy Murphy
1997-02-21  5:00 ` Hyong Lee
1997-02-21  5:00 ` Ron Natalie
1997-02-21  5:00 ` Oleg Krivosheev
1997-02-21  5:00   ` Timothy Murphy
1997-02-21  5:00     ` Dirk Nehring
1997-02-22  5:00 ` H.W. Stockman
1997-02-22  5:00 ` Michael Champigny
1997-02-24  5:00   ` Thomas Leitner [this message]
1997-02-24  5:00 ` Jerry Quinn
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