Re: Code quality

tm@netcom.com (Toshiyasu Morita)
Thu, 7 Jan 1993 04:53:56 GMT

          From comp.compilers

Related articles
[2 earlier articles]
Re: Code quality davidm@questor.rational.com (1993-01-06)
Re: Code quality henry@zoo.toronto.edu (1993-01-06)
Re: Code quality tchannon@black.demon.co.uk (1993-01-07)
Re: Code quality prener@watson.ibm.com (1993-01-07)
Re: Code quality ssimmons@convex.com (1993-01-07)
Re: Code quality bill@amber.csd.harris.com (1993-01-07)
Re: Code quality tm@netcom.com (1993-01-07)
Re: Code quality grover@brahmand.Eng.Sun.COM (1993-01-07)
Re: Code quality drw@riesz.mit.edu (1993-01-08)
Re: Code quality polstra!jdp@uunet.UU.NET (1993-01-12)
Re: Code quality shebs@apple.com (1993-01-13)
Re: Code quality glew@pdx007.intel.com (1993-01-25)
Re: Code quality wjw@eb.ele.tue.nl (1993-02-01)
| List of all articles for this month |
Newsgroups: comp.compilers
From: tm@netcom.com (Toshiyasu Morita)
Organization: Netcom Online Communications Services
Date: Thu, 7 Jan 1993 04:53:56 GMT
References: 93-01-017 93-01-020
Keywords: optimize, GCC

John Levine writes:
[It varies all over the place. The Princeton/Bell Labs lcc compiler
>is supposed to produce better code faster than GCC. Ken Thompson's Plan 9
>compiler is supposed to be better still in both dimensions. -John]


The lcc compiler might produce better code for GCC for some
very local bits of code, but not globally. Here's the benchmark
given at the end of the lcc OVERVIEW.TEX file:


                                                        benchmark
_compiler__1._gcc1.35__8._espresso__22._li_23._eqntott__




  VAX: MicroVAX II w/16MB running Ultrix 3.1
  lcc 1734 2708 7015 3532
  cc 1824 2782 7765 3569
  gcc 1439 2757 7353 3263
  cc -O 1661 2653 7086 3757
  gcc -O 1274 2291 6397 1131




  68020: Sun 3/60 w/24MB running SunOS 4.0.3
  lcc 544 1070 2591 567
  cc 514 1005 3308 619
  gcc 426 1048 2498 591
  cc -O 428 882 2237 571
  gcc -O 337 834 1951 326




  MIPS: IRIS 4D/220GTX w/32MB running IRIX 3.3.1
  lcc 116 150 352 111
  cc 107 153 338 100
  gcc 188 502 132
  cc -O 92 130 299 70
  gcc -O 145 411 112




  SPARC: Sun 4/260 w/32MB running SunOS 4.0.3
  lcc 196 370 790 209
  cc 203 381 1094 275
  gcc 186 411 1139 256
  cc -O 150 296 707 183
  gcc -O 127 309 788 179






  Table 2: Execution Time for C SPEC Benchmarks in Seconds.




I think it's a bit misleading to say lcc produces better code than gcc.


lcc is definitely faster than gcc, however.




Toshi Morita
tm@netcom.com


--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.