From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,e1b09bdf3cb61da4 X-Google-Attributes: gid111c93,public From: michal@gortel.phys.ualberta.ca (Michal Jaegermann) Subject: Re: zlib-1.1.3 compiles with ccc Date: 2000/09/17 Message-ID: <8q35bv$cq8$1@pulp.srv.ualberta.ca>#1/1 X-Deja-AN: 670926489 References: <39C22EF3.40ABD76C@saunalahti.fi> <8ptr7t$j2u$2@pulp.srv.ualberta.ca> Organization: Disorganized Bits Reply-To: michal@phys.ualberta.ca Newsgroups: comp.os.linux.alpha 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