SPARC option -mapp-regs

Sebastian Huber sebastian.huber@embedded-brains.de
Wed Mar 5 17:29:00 GMT 2014


Hello,

GCC has a SPARC specific option -mapp-regs:

http://gcc.gnu.org/onlinedocs/gcc/SPARC-Options.html

"Specify -mapp-regs to generate output using the global registers 2 through 4, 
which the SPARC SVR4 ABI reserves for applications. 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."

I think what is missing here is if GCC uses these registers as volatile (may be 
destroyed across a function call) or not.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the Gcc-help mailing list