On 8/16/10 8:38 PM, Dennis Clarke wrote:
Works fine here with the 12.1 compiler. Solaris 10 on UltraSPARC,
current patches, on both the OS and the compilers. My CFLAGS:
-fast -xtarget=ultra3 -m32 -xarch=sparcvis2
The is ye ol'production Solaris 8 and thus Sun Studio 11 is needed.
Oh. Eeeew. :)
Hey, there are banks and telco places all over that are running it and they *refuse* to upgrade. I know of government sites that are still on old E450's because they have not died yet. No kidding. Some of that old Sun gear just WILL NOT bloody die. The way to justify the capital expenditure on a new Sun Sparc server is to spill a coffee on/in it. 8-P
Problem solved simply by using GCC 4.5.1 from Blastwave ( of course ).
I wonder how GCCFSS would do. Will it even run under Solaris 8?
Why not ? It is a rock solid kernel and you can build it and see :-)
Question for you: why would you use -m32 with an -xarch=sparcvis2 ? Why not go for greatest possible portability and range of processors with something like this :
CFLAGS=-m32 -Qy -Xa -xbuiltin=%none -xnolibmil -xnolibmopt -xcode=pic32 -xildoff -xregs=no%appl -xs -xstrconst -D_TS_ERRNO
Because I don't intend to run it on a range of processors. =)
ah ... I am in a different world.
If you feel like some optimization then chuck in -xO3 and -xdepend however I'd test the resultant bins from a basic compile first.
Just my 0.02
Fair enough, and I appreciate your advice. My goal in this case is to generate the fastest binaries possible on the machine it's being built on, which is identical to the machine it's going to be run on. There's zero need for portable binaries in this particular installation.
In that case run fpversion :
fpversion A SPARC-based CPU is available. Kernel says CPU's clock rate is 900.0 MHz. Kernel says main memory's clock rate is 150.0 MHz.
Sun-4 floating-point controller version 0 found. An UltraSPARC chip is available.
Use "-xtarget=ultra3cu -xcache=64/32/4:8192/512/2" code-generation option.
See those compiler options ? Use them.
Also put in -xO3 and -xdepend and then the compile will take a lot longer but you will be happy you waited. Sun Studio compilers can really rock if you know how to push them.
-- Dennis Clarke dclarke@opensolaris.ca <- Email related to the open source Solaris dclarke@blastwave.org <- Email related to open source for Solaris