From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,4820dfa6cb2bff3e X-Google-Attributes: gid102b75,public X-Google-Thread: 111c93,3626ccca6bb70e55 X-Google-Attributes: gid111c93,public From: ttk@for_mail_remove_this_and_fruit.larva.apple.shinma.org (TTK Ciar) Subject: Re: How hard would it be to improve gcc's performance to match DEC CC? Date: 1999/04/19 Message-ID: <7fevl7$hrv$1@remarQ.com>#1/1 X-Deja-AN: 468238678 References: <87d81hkqw0.fsf@pfaffben.user.msu.edu> <3715f75f.0@news.destek.net> <371A0B6C.4E678E8@gmx.de> <7fdn5h$e24$1@tesla.EECS.Berkeley.EDU> X-Complaints-To: newsabuse@remarQ.com X-Trace: 924516839 MPCBFHUBS1102CDB3C usenet57.supernews.com Organization: Subtle, but there Newsgroups: comp.os.linux.alpha,comp.arch In article <7fdn5h$e24$1@tesla.EECS.Berkeley.EDU>, Peter Mardahl wrote: > >I've read somewhere that gcc's fundamental design (cross-platform, etc) >and some of the abstraction layers make it very, very hard to do certain >kinds of optimizations, which DEC CC can do, or in other words, >that gcc would have to be redesigned to get performance to match >DEC CC. Yes, it needs to be redesigned. The cross-platform orientation of the compiler has little to do with it, though. The intermediate lang- guage (RTL) is ancient and makes it hard to perform certain modern optimizations. Also, not enough optimization is performed at the parse-tree level. Replacing all of the RTL stuff would mean rewriting most of the compiler, something that people accustomed to developing gcc are loathe to do, especially since there's a lot of work that can be done to improve the compiler without going so far as total rewrite. >I unfortunately can't cite a source for this, but it makes me >reluctant to tell DEC (or anyone else) that they should "fix" gcc. I don't see DEC's motivation, frankly. They've already designed and implemented their own compiler. If they "should" do anything, perhaps they should add gcc's C enhancements to their compiler. -- TTK