Gnu C vs. cc

Wolfgang S. Rupprecht wsrcc!wolfgang at uunet.uu.net
Thu Nov 1 11:05:27 AEST 1990


>> 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



More information about the Comp.sys.sun mailing list