C++ User's Guide

-xcg(89|92)

SPARC: Compiles for generic SPARC or SPARC V8 architecture.

This option specifies the code generator for floating-point hardware in SPARC devices released in 1989 or 1992. Use the fpversion command to determine which floating-point hardware you have. If you compile one procedure of a program with this option, it does not mean that you must compile all the procedures of that program in the same way.

-xg89 generates code to run on generic SPARC architecture.

-xg92 generates code to run on SPARC V8 architecture.

Expansions

The option -xcg89 is a macro for -xtarget=ss2, which is equivalent to -xarch=v7 -xchip=old -xcache=64/32/1.

The option -xcg92 is a macro for -xtarget=ss1000, which is equivalent to

-xarch=v8 -xchip=super -xcache=16/64/4:1024/64/1.

Warnings

If you compile and link in separate steps and you compile with -xcg89 or -xcg92, be sure to link with the same option, or you might get unexpected results.