Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: michal@gortel.phys.ualberta.ca (Michal Jaegermann)
Subject: Re: zlib-1.1.3 compiles with ccc
Date: 2000/09/17	[thread overview]
Message-ID: <8q35bv$cq8$1@pulp.srv.ualberta.ca> (raw)
In-Reply-To: slrn8sa197.6ki.spuggy@rameses.duat

Spuggy Loonpant (spuggy@rameses.duat) wrote:
: On Sat, 16 Sep 2000 08:14:31 -0400, sideband wrote:
: >
: >What's the benifit of ccc over gcc?

: Programs compiled with ccc are supposed to run up to 30% faster than
: when compiled with gcc.

People who bothered to verify that claim, like Jeff Sturm - for example,
have a bit different opinion on the subject.  Yes, there are situations
where you gain (and some where you loose) but 30% across the board is a
bit of exaggregation. :-) Usually the most spectacular numbers come from
benchmarks which differ quite a bit from "the real stuff".

A "naive" compilation of programs using floating point will get you
linked with 'libm' if you are using gcc and 'cpml' when ccc was in use.
Depending on what your program is doing gains can be substantial from
just switching libraries but this is in reality NOT a compiler
dependent.  A bit of fiddling with options and you can get 'cpml' with
gcc and 'libm' with ccc.  Libraries are not the only difference but so
far in what I have seen their impact was the most substantial.  If your
code spends bulk of it time computing elementary trig functions in inner
loops then you will be very happy after doing CC=ccc in your Makefile. :-)

Saying that I do think that a project like recompiling a bulk of a
"standard" Red Hat distribution with ccc is a worthwhile thing to do
only if to verify compilers and identify places in sources which should
be portable but they are not.  Keep in mind that vast majority of "user
space" sources used is not Linux, not even mentioning Red Hat distro,
specific.  I assume, of course, that findings will be shared. If you
will get also performance gains then even more joy.  Remember also that
Red Hat binaries are "generic" in that sense that they are supposed to
run on all Alpha platforms.  Quite often you can generate a better code
if you can afford to be platform specific.

OTOH over years I did compile number of things on different platforms
(and contributed a code here and there) using a variety of compilers
and somehow never crossed my mind to announce every such feat urbi et
orbi. :-)

  Michal



  reply	other threads:[~2000-09-17  4:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-15  4:00 zlib-1.1.3 compiles with ccc h0l0gRaM
2000-09-15  4:00 ` Michal Jaegermann
2000-09-15  4:00   ` Tony Hammitt
2000-09-15 23:45   ` h0l0gRaM
2000-09-16  4:00     ` Michal Jaegermann
2000-09-16  4:00   ` Spuggy Loonpant
2000-09-16  4:00     ` sideband
2000-09-16  4:00       ` h0l0gRaM
2000-09-16  4:00         ` Jeff Sturm
2000-09-17  0:22           ` h0l0gRaM
2000-09-17  4:00       ` Spuggy Loonpant
2000-09-17  4:00         ` Michal Jaegermann [this message]
2000-09-18  3:35         ` Tony Hammitt
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