⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arm-directives.html

📁 gcc手册
💻 HTML
字号:
<html lang="en">

<head>

<title>Using as</title>

<meta http-equiv="Content-Type" content="text/html">

<meta name="description" content="Using as">

<meta name="generator" content="makeinfo 4.3">

<link href="http://www.gnu.org/software/texinfo/" rel="generator-home">

</head>

<body>

<div class="node">

<p>

Node:<a name="ARM%20Directives">ARM Directives</a>,

Next:<a rel="next" accesskey="n" href="ARM-Opcodes.html#ARM%20Opcodes">ARM Opcodes</a>,

Previous:<a rel="previous" accesskey="p" href="ARM-Floating-Point.html#ARM%20Floating%20Point">ARM Floating Point</a>,

Up:<a rel="up" accesskey="u" href="ARM-Dependent.html#ARM-Dependent">ARM-Dependent</a>

<hr><br>

</div>



<h4 class="section">ARM Machine Directives</h4>



     <dl>



     <br><dt><code>.align </code><var>expression</var><code> [, </code><var>expression</var><code>]</code>

     <dd>This is the generic <var>.align</var> directive.  For the ARM however if the

first argument is zero (ie no alignment is needed) the assembler will

behave as if the argument had been 2 (ie pad to the next four byte

boundary).  This is for compatability with ARM's own assembler.



     <br><dt><code></code><var>name</var><code> .req </code><var>register name</var><code></code>

     <dd>This creates an alias for <var>register name</var> called <var>name</var>.  For

example:



     <pre class="smallexample">                  foo .req r0

          </pre>



     <br><dt><code>.code [16|32]</code>

     <dd>This directive selects the instruction set being generated. The value 16

selects Thumb, with the value 32 selecting ARM.



     <br><dt><code>.thumb</code>

     <dd>This performs the same action as <var>.code 16</var>.



     <br><dt><code>.arm</code>

     <dd>This performs the same action as <var>.code 32</var>.



     <br><dt><code>.force_thumb</code>

     <dd>This directive forces the selection of Thumb instructions, even if the

target processor does not support those instructions



     <br><dt><code>.thumb_func</code>

     <dd>This directive specifies that the following symbol is the name of a

Thumb encoded function.  This information is necessary in order to allow

the assembler and linker to generate correct code for interworking

between Arm and Thumb instructions and should be used even if

interworking is not going to be performed.  The presence of this

directive also implies <code>.thumb</code>



     <br><dt><code>.thumb_set</code>

     <dd>This performs the equivalent of a <code>.set</code> directive in that it

creates a symbol which is an alias for another symbol (possibly not yet

defined).  This directive also has the added property in that it marks

the aliased symbol as being a thumb function entry point, in the same

way that the <code>.thumb_func</code> directive does.



     <br><dt><code>.ltorg</code>

     <dd>This directive causes the current contents of the literal pool to be

dumped into the current section (which is assumed to be the .text

section) at the current location (aligned to a word boundary).



     <br><dt><code>.pool</code>

     <dd>This is a synonym for .ltorg.



   </dl>



   </body></html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -