From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcda7,71c35a0e73c110d5 X-Google-Attributes: gidfcda7,public X-Google-Thread: 10872d,71c35a0e73c110d5 X-Google-Attributes: gid10872d,public X-Google-Thread: 115614,71c35a0e73c110d5 X-Google-Attributes: gid115614,public X-Google-Thread: 1164f8,71c35a0e73c110d5 X-Google-Attributes: gid1164f8,public X-Google-Thread: 11035d,71c35a0e73c110d5 X-Google-Attributes: gid11035d,public X-Google-Thread: fa528,71c35a0e73c110d5 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-08-02 10:37:14 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!207.217.77.43.MISMATCH!elnk-pas-nf1!newsfeed.earthlink.net!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: "Uli Link" Newsgroups: comp.sys.hp.hpux,comp.unix.tru64,comp.sys.dec,comp.unix.solaris,comp.sys.sgi.admin,comp.unix.aix Subject: Re: Free UNIX for non-commerical use. Date: Sat, 2 Aug 2003 19:35:17 +0200 Organization: T-Online Message-ID: References: <3F233C74.4F4C3BAB@ntlworld.com> <3F2368E5.ED5037A0@hotmail.com> <3F23A005.83B7C2DA@hotmail.com> <3f23a698$0$15040$cc9e4d1f@news.dial.pipex.com> <3F251918.B861101C@ntlworld.com> Reply-To: "Uli Link" Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1059845718 05 1278 vtqYV+CSFAdkR 030802 17:35:18 X-Complaints-To: usenet-abuse@t-online.de X-ID: rBPBxrZ6geYhIFMClb68AchGlOmlx5VqYbKD+Joc5fqvKqMac4-PoL X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: archiver1.google.com comp.sys.hp.hpux:30061 comp.unix.tru64:10493 comp.sys.dec:16563 comp.unix.solaris:164552 comp.sys.sgi.admin:18873 comp.unix.aix:54266 > When people are producing better code using gcc than vendor compilers, > its because 1) they don't know the options for the vendor compiler too > well, or 2) they have a program whose execution time is dominated by > one or two loops and gcc happens to handle the particular way that code > is written better or 3) they aren't using some of the higher end optimization > features like interprocedural optimization, profile based optimization, > etc. Often just reording the C code or changing arrays to pointers or > vice versa, etc. can change the performance significantly. Certain code > constructs just fit what the compiler expects to see for given optimizations > better than others. Those who experiment reap the benefits. Agree. IBM's xlc gives better peak-performance on AIX. I expiremented with mpg123, bzip2 and gzip for getting a thumb. IBM xlc broke the binaries of mpg123 and bzip2 with: "-O5 -qarch=(cpu) -qtune=(cpu) -qipa" but worked with "-O3 -qarch=(cpu) -qtune=(cpu)" and lost against the GCC with "-O6 -mcpu=(cpu)" After isolating the broken module and optimizing the remaining at highest level IBM xlc won in all CPU's against GCC. Took me two or three hours for this really small count of modules. Don't wan't this with OpenSSL with it's hundreds of objects. > > Whether the numbers you see at SPEC are realistic is another matter, > most people (and many commercial apps) just use -O or -O > rather than checking what options are out there. gcc tends to be > relatively better in these limited circumstances (mainly because it > rolls a lot more stuff in the -O and -O2 than vendor compilers for > code quality/safety reasons) Profile based optimization is a pain, > one of my major pet peeves with SPEC is that it allows this for the > 'base' numbers. > Agree. And the compiler vendors give the routines used in the SPEC special attention that they don't break the code even at the highest optimization. On AIX the difference between "-qarch=com" and "-qarch=604 -qtune=604" gives often more than 20% on a PPC604. How can one be sure that such peak optimized code works correct in all circumstances, since it cannot be debugged or tested in full. At highest level nearly all modules give a warning of the optimizer. No problem if mpg123 crashes one day with a special mp3, but most apps are a little more critical. Don't think the time for a full optimization of the "Golden Code" is really a problem, but for what CPU? It should be possible to relink the app on the target with 90%-95% common code and the 5-10% optimized for the target by the choice of only one archive, but never seen such with any commercial software. And when I build opensource like OpenSSH, OpenSSL the makefiles lack any good optimization for AIX. It is nearly inpossible to separate the one or two modules that broke perl or OpenSSL after a possible warning in each module and a successful linking. One big pound of the GCC is it's ability to generate optimized code still containing the debug info that you can see what the optimizer has broken, without stepping down to the assembler code. So the overall answer for the best compiler is: "it depends on..." And 15 days out of 60 days with IBM xlc are over now. One fact is: People pay a lot money for 10% faster cpu(s)... No matter if home user or SAP user. --- Uli