blob: 70919cb8888544412275a02541bdd62405645f3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<div class="subsection-level-extent" id="M32C-Pragmas"> <div class="nav-panel"> <p> Next: <a href="pru-pragmas" accesskey="n" rel="next">PRU Pragmas</a>, Previous: <a href="arm-pragmas" accesskey="p" rel="prev">ARM Pragmas</a>, Up: <a href="pragmas" accesskey="u" rel="up">Pragmas Accepted by GCC</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="M32C-Pragmas-1"><span>6.62.3 M32C Pragmas<a class="copiable-link" href="#M32C-Pragmas-1"> ¶</a></span></h1> <dl class="table"> <dt>
<span><code class="code">GCC memregs <var class="var">number</var></code><a class="copiable-link" href="#index-pragma_002c-memregs"> ¶</a></span>
</dt> <dd>
<p>Overrides the command-line option <code class="code">-memregs=</code> for the current file. Use with care! This pragma must be before any function in the file, and mixing different memregs values in different objects may make them incompatible. This pragma is useful when a performance-critical function uses a memreg for temporary values, as it may allow you to reduce the number of memregs used. </p> </dd> <dt>
<span><code class="code">ADDRESS <var class="var">name</var> <var class="var">address</var></code><a class="copiable-link" href="#index-pragma_002c-address"> ¶</a></span>
</dt> <dd>
<p>For any declared symbols matching <var class="var">name</var>, this does three things to that symbol: it forces the symbol to be located at the given address (a number), it forces the symbol to be volatile, and it changes the symbol’s scope to be static. This pragma exists for compatibility with other compilers, but note that the common <code class="code">1234H</code> numeric syntax is not supported (use <code class="code">0x1234</code> instead). Example: </p> <div class="example smallexample"> <pre class="example-preformatted" data-language="cpp">#pragma ADDRESS port3 0x103
char port3;</pre>
</div> </dd> </dl> </div><div class="_attribution">
<p class="_attribution-p">
© 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/M32C-Pragmas.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/M32C-Pragmas.html</a>
</p>
</div>
|