summaryrefslogtreecommitdiff
path: root/devdocs/gcc~13/msp430-variable-attributes.html
diff options
context:
space:
mode:
Diffstat (limited to 'devdocs/gcc~13/msp430-variable-attributes.html')
-rw-r--r--devdocs/gcc~13/msp430-variable-attributes.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/devdocs/gcc~13/msp430-variable-attributes.html b/devdocs/gcc~13/msp430-variable-attributes.html
new file mode 100644
index 00000000..961aa08f
--- /dev/null
+++ b/devdocs/gcc~13/msp430-variable-attributes.html
@@ -0,0 +1,12 @@
+<div class="subsection-level-extent" id="MSP430-Variable-Attributes"> <div class="nav-panel"> <p> Next: <a href="nvidia-ptx-variable-attributes" accesskey="n" rel="next">Nvidia PTX Variable Attributes</a>, Previous: <a href="microsoft-windows-variable-attributes" accesskey="p" rel="prev">Microsoft Windows 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="MSP430-Variable-Attributes-1"><span>6.34.10 MSP430 Variable Attributes<a class="copiable-link" href="#MSP430-Variable-Attributes-1"> ¶</a></span></h1> <dl class="table"> <dt>
+ <span><code class="code">upper</code><a class="copiable-link" href="#index-upper-variable-attribute_002c-MSP430"> ¶</a></span>
+</dt> <dt><code class="code">either</code></dt> <dd>
+<p>These attributes are the same as the MSP430 function attributes of the same name (see <a class="pxref" href="msp430-function-attributes">MSP430 Function Attributes</a>). </p> </dd> <dt>
+<span><code class="code">lower</code><a class="copiable-link" href="#index-lower-variable-attribute_002c-MSP430"> ¶</a></span>
+</dt> <dd>
+<p>This option behaves mostly the same as the MSP430 function attribute of the same name (see <a class="pxref" href="msp430-function-attributes">MSP430 Function Attributes</a>), but it has some additional functionality. </p> <p>If <samp class="option">-mdata-region=</samp>{<code class="code">upper,either,none</code>} has been passed, or the <code class="code">section</code> attribute is applied to a variable, the compiler will generate 430X instructions to handle it. This is because the compiler has to assume that the variable could get placed in the upper memory region (above address 0xFFFF). Marking the variable with the <code class="code">lower</code> attribute informs the compiler that the variable will be placed in lower memory so it is safe to use 430 instructions to handle it. </p> <p>In the case of the <code class="code">section</code> attribute, the section name given will be used, and the <code class="code">.lower</code> prefix will not be added. </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/MSP430-Variable-Attributes.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/MSP430-Variable-Attributes.html</a>
+ </p>
+</div>