"Richard B. Gilbert" <rgilbert88@comcast.net> writes:
>> This blog post should answer all your questions:
>>
>> http://blogs.sun.com/morganh/entry/a...king_the_rules
>>
>The question it fails to answer is WHERE IS THIS DOCUMENTED! I'm not
>personally concerned because the likelihood of my doing any assembler
>language programming is just about zero! Still, it's reasonable to
>expect this restriction to be documented and documented in a place where
>it will be found by anyone doing SPARC assembler language programming.
You mean you want the page # of the document the blog references as
the official SPARC ABI?
Page 3-9 of the SPARC ABI documents which registers are reserved for what.
Specificly
%g7 %r7 global 7 (reserved for system)
%g6 %r6 global 6 (reserved for system)
%g5 %r5 global 5 (reserved for system)
%g4 %r4 global 4 (reserved for application)
%g3 %r3 global 3 (reserved for application)
%g2 %r2 global 2 (reserved for application)
%g1 %r1 global 1