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 X-Google-ArrivalTime: 2000-09-16 17:31:54 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!xfer13.netnews.com!netnews.com!newsfeeds.belnet.be!news.belnet.be!skynet.be!newsfeed1.funet.fi!newsfeeds.funet.fi!news.cc.tut.fi!uutiset.saunalahti.fi!not-for-mail From: h0l0gRaM Newsgroups: comp.os.linux.alpha Subject: Re: zlib-1.1.3 compiles with ccc Date: Sun, 17 Sep 2000 03:22:37 +0300 Organization: SAUNALAHDEN asiakas Message-ID: <39C40ECD.55521A17@saunalahti.fi> References: <39C22EF3.40ABD76C@saunalahti.fi> <8ptr7t$j2u$2@pulp.srv.ualberta.ca> <39C37274.1220852E@saunalahti.fi> <39C3F9EE.694F5B7E@appnet.com> NNTP-Posting-Host: mmdccclxxxix.hdyn.saunalahti.fi Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: tron.sci.fi 969150704 2896 195.197.45.189 (17 Sep 2000 00:31:44 GMT) X-Complaints-To: newsmaster@saunalahti.fi NNTP-Posting-Date: 17 Sep 2000 00:31:44 GMT X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.14 alpha) X-Accept-Language: en Xref: supernews.google.com comp.os.linux.alpha:543 Jeff Sturm wrote: > > And sometimes slower. It just happens that the first program I bothered > to benchmark with ccc (gcbench) ran slower than with gcc. Others show > little or no improvement, though executables built with ccc tend to be > somewhat smaller. > > I'm curious, have you made any real measurements of gcc vs. ccc? If so, > what version? Did you use the Red Hat-supplied egcs or build the latest > release (2.95.2)? Are you using any architecture features (e.g. BWX, > MVI), or generating plain (ev4) binaries? > I have done few measurement tests. Always there's somehow faster code when compiling with ccc ,but not always. Used compilers are egcs-1.1.2 ,gcc-2.8.1 ,gcc-2.95.2 ,ccc-6.2.9.504-2 and cxx-6.3.9.5. None architechture features used ,not now maybe later ,so I generate plain ev5 binaries. > > It's actually good to have a choice of compilers. That gives us a > baseline for measuring compiler performance, among other things. If we > find code that seems to run poorly, we have several options: > > 1) Modify the source. Optimizers aren't perfect, they can often do much > better with a little help, e.g. declare short routines "inline" and use > temporary variables for common expressions. > Source modification comes when program doesn't compile ,for now ,I don't optimise source itself. > 2) Try other compiler flags. Both gcc and ccc have many options, and > full optimization is often not helpful. On critical pieces of code it > is worthwhile to try several optimization levels and see which give the > best results. > Tried ,when using -strong_volatile , -weak_volatile have shown that they differ in optimisation. > 3) Use another compiler. For C code, it isn't usually necessary to > recompile the entire project. Find the routines that optimize poorly > and try compiling them with ccc or gcc as the case may be. Also new > releases of the same compiler will have different code generation > characterstics. GCC 3, whenever it is released, promises to be a worthy > successor to 2.95, especially for c++ code. > Our projects main goal is to compile so much as we can of standard Linux distro (RedHat for instead) > example.) It's not an easy task, but luckily the Alpha has good tools > (ever heard of iprobe?) > Yes I have heard of it > Perhaps instead of posting "package xxx compiles with ccc", a more > meaningful post may be "package xxx compiles with ccc and runs yy% > faster on a test case than when compiled with gcc version zzz". > Maybe ,now moving to sourceforge site ,no those "xxxxked" postings any more. -- The sooner our happiness together begins, the longer it will last. -- Miramanee, "The Paradise Syndrome", stardate 4842.6