home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.compilers
- Path: sparky!uunet!gatech!emory!sol.ctr.columbia.edu!eff!world!iecc!compilers-sender
- From: tm@netcom.com (Toshiyasu Morita)
- Subject: Re: Code quality
- Reply-To: tm@netcom.com (Toshiyasu Morita)
- Organization: Netcom Online Communications Services
- Date: Thu, 7 Jan 1993 04:53:56 GMT
- Approved: compilers@iecc.cambridge.ma.us
- Message-ID: <93-01-032@comp.compilers>
- References: <93-01-017@comp.compilers> <93-01-020@comp.compilers>
- Keywords: optimize, GCC
- Sender: compilers-sender@iecc.cambridge.ma.us
- Lines: 60
-
- 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
-
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-