GCC Compiling Flags for SunOS
Use -02 and -mv8 when compiling and -mv8 when linking:
gcc -02 -mv8