summaryrefslogtreecommitdiff
path: root/devdocs/gcc~13/m32r_002fd-variable-attributes.html
blob: e447f31a7d1b3e1fb9734525dde59be091987d6a (plain)
1
2
3
4
5
6
7
8
9
10
<div class="subsection-level-extent" id="M32R_002fD-Variable-Attributes"> <div class="nav-panel"> <p> Next: <a href="microsoft-windows-variable-attributes" accesskey="n" rel="next">Microsoft Windows Variable Attributes</a>, Previous: <a href="loongarch-variable-attributes" accesskey="p" rel="prev">LoongArch Variable Attributes</a>, Up: <a href="variable-attributes" accesskey="u" rel="up">Specifying Attributes of Variables</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div>  <h1 class="subsection" id="M32R_002fD-Variable-Attributes-1"><span>6.34.8 M32R/D Variable Attributes<a class="copiable-link" href="#M32R_002fD-Variable-Attributes-1"> ¶</a></span></h1> <p>One attribute is currently defined for the M32R/D. </p> <dl class="table"> <dt>
 <span><code class="code">model (<var class="var">model-name</var>)</code><a class="copiable-link" href="#index-model-name-variable-attribute_002c-M32R_002fD"> ¶</a></span>
</dt> <dd>
<p>Use this attribute on the M32R/D to set the addressability of an object. The identifier <var class="var">model-name</var> is one of <code class="code">small</code>, <code class="code">medium</code>, or <code class="code">large</code>, representing each of the code models. </p> <p>Small model objects live in the lower 16MB of memory (so that their addresses can be loaded with the <code class="code">ld24</code> instruction). </p> <p>Medium and large model objects may live anywhere in the 32-bit address space (the compiler generates <code class="code">seth/add3</code> instructions to load their addresses). </p>
</dd> </dl> </div><div class="_attribution">
  <p class="_attribution-p">
    &copy; Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br>
    <a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/M32R_002fD-Variable-Attributes.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/M32R_002fD-Variable-Attributes.html</a>
  </p>
</div>