home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / compiler / 2100 < prev    next >
Encoding:
Text File  |  1993-01-07  |  2.5 KB  |  75 lines

  1. Newsgroups: comp.compilers
  2. Path: sparky!uunet!gatech!emory!sol.ctr.columbia.edu!eff!world!iecc!compilers-sender
  3. From: tm@netcom.com (Toshiyasu Morita)
  4. Subject: Re: Code quality
  5. Reply-To: tm@netcom.com (Toshiyasu Morita)
  6. Organization: Netcom Online Communications Services
  7. Date: Thu, 7 Jan 1993 04:53:56 GMT
  8. Approved: compilers@iecc.cambridge.ma.us
  9. Message-ID: <93-01-032@comp.compilers>
  10. References: <93-01-017@comp.compilers> <93-01-020@comp.compilers>
  11. Keywords: optimize, GCC
  12. Sender: compilers-sender@iecc.cambridge.ma.us
  13. Lines: 60
  14.  
  15. John Levine writes:
  16. [It varies all over the place.  The Princeton/Bell Labs lcc compiler
  17. >is supposed to produce better code faster than GCC.  Ken Thompson's Plan 9
  18. >compiler is supposed to be better still in both dimensions. -John]
  19.  
  20. The lcc compiler might produce better code for GCC for some
  21. very local bits of code, but not globally. Here's the benchmark
  22. given at the end of the lcc OVERVIEW.TEX file:
  23.  
  24.                             benchmark
  25. _compiler__1._gcc1.35__8._espresso__22._li_23._eqntott__
  26.  
  27.  
  28.  VAX: MicroVAX II w/16MB running Ultrix 3.1
  29.  lcc          1734        2708       7015      3532
  30.  cc           1824        2782       7765      3569
  31.  gcc          1439        2757       7353      3263
  32.  cc -O        1661        2653       7086      3757
  33.  gcc -O       1274        2291       6397      1131
  34.  
  35.  
  36.  68020: Sun 3/60 w/24MB running SunOS 4.0.3
  37.  lcc          544         1070       2591       567
  38.  cc           514         1005       3308       619
  39.  gcc          426         1048       2498       591
  40.  cc -O        428          882       2237       571
  41.  gcc -O       337          834       1951       326
  42.  
  43.  
  44.  MIPS: IRIS 4D/220GTX w/32MB running IRIX 3.3.1
  45.  lcc          116          150       352        111
  46.  cc           107          153       338        100
  47.  gcc                       188       502        132
  48.  cc -O         92          130       299         70
  49.  gcc -O                    145       411        112
  50.  
  51.  
  52.  SPARC: Sun 4/260 w/32MB running SunOS 4.0.3
  53.  lcc          196          370        790       209
  54.  cc           203          381       1094       275
  55.  gcc          186          411       1139       256
  56.  cc -O        150          296        707       183
  57.  gcc -O       127          309        788       179
  58.  
  59.  
  60.  
  61.  Table 2: Execution Time for C SPEC Benchmarks in Seconds.
  62.  
  63.  
  64. I think it's a bit misleading to say lcc produces better code than gcc.
  65.  
  66. lcc is definitely faster than gcc, however.
  67.  
  68.  
  69. Toshi Morita
  70. tm@netcom.com
  71.  
  72. -- 
  73. Send compilers articles to compilers@iecc.cambridge.ma.us or
  74. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  75.