3.18.45. SPARC Options

3.18.45 SPARC Options

These ‘-m’ options are supported on the SPARC:

-mno-app-regs
-mapp-regs

Specify -mapp-regs to generate output using the global registers 2 through 4, which the SPARC SVR4 ABI reserves for applications. Like the global register 1, each global register 2 through 4 is then treated as an allocable register that is clobbered by function calls. This is the default.

To be fully SVR4 ABI-compliant at the cost of some performance loss, specify -mno-app-regs. You should compile libraries and system software with this option.

-mflat
-mno-flat

With -mflat, the compiler does not generate save/restore instructions and uses a “flat” or single register window mode