This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -O4 needed
- To: patha at ida dot liu dot se (Patrik Hagglund)
- Subject: Re: -O4 needed
- From: Jakub Jelinek <jj at sunsite dot ms dot mff dot cuni dot cz>
- Date: Sat, 12 Sep 1998 12:17:03 +0200 (MET DST)
- Cc: egcs at cygnus dot com
> 100000 elements
> cc -fast -xO5: 195 ms
> gcc -O3 -fstrength-reduce -fthread-jumps -fcse-follow-jumps
> -fcse-skip-blocks -frerun-cse-after-loop -frerun-loop-opt -fgcse
> -fexpensive-optimizations -fregmove -fschedule-insns -fschedule-insns2
> -ffunction-sections -fcaller-saves -funroll-loops -fmove-all-movables
> -freduce-all-givs -fstrict-aliasing
> : 202 ms
If you want to compare with SunPRO, you'd better use latest CVS egcs, and
pass it gcc -O3 -fstrict-aliasing -mtune=ultrasparc -mvis -mv8plus
as the new SPARC backend is much better than the old one. Sibcall
optimization could help here a lot as well.
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.1.120 on a sparc64 machine (498.80 BogoMips).
___________________________________________________________________