This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Best egcs options for Ultrasparc on Solaris?
- To: egcs at cygnus dot com
- Subject: Best egcs options for Ultrasparc on Solaris?
- From: Brad Lucier <lucier at math dot purdue dot edu>
- Date: Fri, 5 Feb 1999 08:46:27 -0500 (EST)
- Cc: lucier at math dot purdue dot edu, staff at math dot purdue dot edu, wilker at math dot purdue dot edu
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