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]

Best egcs options for Ultrasparc on Solaris?


I would like to generate the fastest code for my ultrasparc  running
Solaris 2.5.1 (using Sun's assembler) with egcs-1.1.1.  Currently I'm
using, e.g.,

gcc -O2 -mcpu=v9 -Wa,-xarch=v8plus -mtune=ultrasparc -fcall-used-g4 -fcall-used-g5 -fcall-used-g6 -fcall-used-g7 -c -o %s.o %s.c"

This seems to work in my 32-bit environment, and it gives me relatively
good code.  The -mv8plus option, without -mcpu=v9, seems to do
absolutely nothing---it doesn't even give me the hardware integer
multiply instructions.

I'm wondering:

1. Are these the best options?

2. How can I configure egcs-1.1.1 and the snapshots so that I don't
need -Wa,-xarch=v8plus?

3. It seems that -mv8plus should give me the same thing that "-mcpu=v9
-Wa,-xarch=v8plus" gives me, but it doesn't (and after looking at the
sources in gcc/config/sparc, I'm not surprised).  Can somebody suggest
a fix?

Brad Lucier     lucier@math.purdue.edu


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