This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: best optimization under IRIX ?


On Wed, 6 Sep 2000 05:20:36 +0200, Matthias Kurz wrote:
> What are the optimization options that give the maximum speed on
> a O2000/R10000 ?

I usually use (on an Onyx2/R12000):
-O2 -mabi=n32 -mips4 -mcpu=r8000 -funroll-loops -fomit-frame-pointer

> Currently the native "cc" with "-32 -Ofast=IP27" generates code that runs
> twice as fast as "gcc -mabi=n32 -O3 -mips3 -r4000". 

Depends a lot on the source code. I have examples where gcc-2.95.2
generates code that runs three to four times as fast as the native MipsPRO
C compiler.

> I see neither -mips4 nor -r10000 in the man page.

The manpage is not up to date. Read the info files.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]