Article View: gnu.gcc.bug
Article #2433cc -O2 produces better code than gcc 1.34 -O on Sun 3
From: Bruce Robertson
Date: Tue, 21 Mar 1989 06:44
Date: Tue, 21 Mar 1989 06:44
13 lines
874 bytes
874 bytes
How is it the Sun compiler is smart enough do to all that, and then generates code like this: addql #1,d1 | come on, this is just silly to miss! addql #1,d1 | movl d1,a0@ moveq #0,d0 | this is a "void" function, why return a value? unlk a6 rts I do agree that specifying "-fstrength-reduce" to gcc should optimize all those complex indexing addressing modes into a direct pointer to the address of "a[i]".
Technical Details
Message-ID:
<m0f2fTq-0002UtC@heather.pooh.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!heather.pooh.com!bruceReferences:
<8903201546.aa23080@PARIS.ICS.UCI.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!heather.pooh.com!bruce From: bruce@heather.pooh.com (Bruce Robertson) Newsgroups: gnu.gcc.bug Subject: cc -O2 produces better code than gcc 1.34 -O on Sun 3 Message-ID: <m0f2fTq-0002UtC@heather.pooh.com> Date: 21 Mar 89 06:44:00 GMT References: <8903201546.aa23080@PARIS.ICS.UCI.EDU> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 13