4 <meta http-equiv=
"Content-Type" content=
"text/html">
5 <meta name=
"description" content=
"STABS">
6 <meta name=
"generator" content=
"makeinfo 4.3">
7 <link href=
"http://www.gnu.org/software/texinfo/" rel=
"generator-home">
12 Node:
<a name=
"Register%20Variables">Register Variables
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"Common-Blocks.html#Common%20Blocks">Common Blocks
</a>,
14 Previous:
<a rel=
"previous" accesskey=
"p" href=
"Global-Variables.html#Global%20Variables">Global Variables
</a>,
15 Up:
<a rel=
"up" accesskey=
"u" href=
"Variables.html#Variables">Variables
</a>
19 <h3 class=
"section">Register Variables
</h3>
21 <p>Register variables have their own stab type,
<code>N_RSYM
</code>
22 (
<code>C_RSYM
</code> for XCOFF), and their own symbol descriptor,
<code>r
</code>.
23 The stab's value is the number of the register where the variable data
26 <p>AIX defines a separate symbol descriptor
<code>d
</code> for floating point
27 registers. This seems unnecessary; why not just just give floating
28 point registers different register numbers? I have not verified whether
29 the compiler actually uses
<code>d
</code>.
31 <p>If the register is explicitly allocated to a global variable, but not
34 <pre class=
"example"> register int g_bar asm (
"%g5");
37 <p>then the stab may be emitted at the end of the object file, with
38 the other bss symbols.