Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bcm!rice!rice!sun-spots-request From: wsrcc!wolfgang@uunet.uu.net (Wolfgang S. Rupprecht) Newsgroups: comp.sys.sun Subject: Re: Gnu C vs. cc Keywords: Software Message-ID: <1990Oct31.235041.21555@rice.edu> Date: 1 Nov 90 00:05:27 GMT Sender: sun-spots-request@rice.edu Organization: Sun-Spots Lines: 16 Approved: Sun-Spots@rice.edu Originator: spots@titan.rice.edu X-Sun-Spots-Digest: Volume 9, Issue 349, message 11 X-Original-Date: Wed, 10 Oct 90 15:33:09 GMT X-Refs: Original: v9n311, Replies: v9n320 >> I'm interested in the performance differences between the SunOs 4.1 cc >> compiler vs. Gnu-C 1.37.1. >On the Sun/3 gcc makes a significant improvement (3 times faster in >places) to the X server, but hardly makes any difference for Sparc or 386i >architectures. Well, the truth is on a SPARC (SLC if it matters) gcc 1.37.1 is sometimes even worse than cc. The infamous drystone string copy test runs about 19,000 drysstones with 'cc -O' and only 14,000 with 'gcc -O'. Setting the more esoteric gcc flags singly or in groups has little effect. I suspect a few 'inline' directives would help gcc's numbers but that would be cheating. Wolfgang Rupprecht uunet!{nancy,usaos,media!ka3ovk}!wsrcc!wolfgang Snail Mail Address: Box 6524, Alexandria, VA 22306-0524