You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RX_002dOpts.html 8.9KB

3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- This file documents the GNU Assembler "as".
  4. Copyright (C) 1991-2020 Free Software Foundation, Inc.
  5. Permission is granted to copy, distribute and/or modify this document
  6. under the terms of the GNU Free Documentation License, Version 1.3
  7. or any later version published by the Free Software Foundation;
  8. with no Invariant Sections, with no Front-Cover Texts, and with no
  9. Back-Cover Texts. A copy of the license is included in the
  10. section entitled "GNU Free Documentation License".
  11. -->
  12. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  15. <title>RX-Opts (Using as)</title>
  16. <meta name="description" content="RX-Opts (Using as)">
  17. <meta name="keywords" content="RX-Opts (Using as)">
  18. <meta name="resource-type" content="document">
  19. <meta name="distribution" content="global">
  20. <meta name="Generator" content="makeinfo">
  21. <link href="index.html#Top" rel="start" title="Top">
  22. <link href="AS-Index.html#AS-Index" rel="index" title="AS Index">
  23. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  24. <link href="RX_002dDependent.html#RX_002dDependent" rel="up" title="RX-Dependent">
  25. <link href="RX_002dModifiers.html#RX_002dModifiers" rel="next" title="RX-Modifiers">
  26. <link href="RX_002dDependent.html#RX_002dDependent" rel="prev" title="RX-Dependent">
  27. <style type="text/css">
  28. <!--
  29. a.summary-letter {text-decoration: none}
  30. blockquote.indentedblock {margin-right: 0em}
  31. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  32. blockquote.smallquotation {font-size: smaller}
  33. div.display {margin-left: 3.2em}
  34. div.example {margin-left: 3.2em}
  35. div.lisp {margin-left: 3.2em}
  36. div.smalldisplay {margin-left: 3.2em}
  37. div.smallexample {margin-left: 3.2em}
  38. div.smalllisp {margin-left: 3.2em}
  39. kbd {font-style: oblique}
  40. pre.display {font-family: inherit}
  41. pre.format {font-family: inherit}
  42. pre.menu-comment {font-family: serif}
  43. pre.menu-preformatted {font-family: serif}
  44. pre.smalldisplay {font-family: inherit; font-size: smaller}
  45. pre.smallexample {font-size: smaller}
  46. pre.smallformat {font-family: inherit; font-size: smaller}
  47. pre.smalllisp {font-size: smaller}
  48. span.nolinebreak {white-space: nowrap}
  49. span.roman {font-family: initial; font-weight: normal}
  50. span.sansserif {font-family: sans-serif; font-weight: normal}
  51. ul.no-bullet {list-style: none}
  52. -->
  53. </style>
  54. </head>
  55. <body lang="en">
  56. <a name="RX_002dOpts"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="RX_002dModifiers.html#RX_002dModifiers" accesskey="n" rel="next">RX-Modifiers</a>, Up: <a href="RX_002dDependent.html#RX_002dDependent" accesskey="u" rel="up">RX-Dependent</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
  60. </div>
  61. <hr>
  62. <a name="RX-Options"></a>
  63. <h4 class="subsection">9.40.1 RX Options</h4>
  64. <a name="index-options_002c-RX"></a>
  65. <a name="index-RX-options"></a>
  66. <p>The Renesas RX port of <code>as</code> has a few target specific
  67. command-line options:
  68. </p>
  69. <dl compact="compact">
  70. <dd>
  71. <a name="index-_002dm32bit_002ddoubles"></a>
  72. </dd>
  73. <dt><code>-m32bit-doubles</code></dt>
  74. <dd><p>This option controls the ABI and indicates to use a 32-bit float ABI.
  75. It has no effect on the assembled instructions, but it does influence
  76. the behaviour of the &lsquo;<samp>.double</samp>&rsquo; pseudo-op.
  77. This is the default.
  78. </p>
  79. <a name="index-_002dm64bit_002ddoubles"></a>
  80. </dd>
  81. <dt><code>-m64bit-doubles</code></dt>
  82. <dd><p>This option controls the ABI and indicates to use a 64-bit float ABI.
  83. It has no effect on the assembled instructions, but it does influence
  84. the behaviour of the &lsquo;<samp>.double</samp>&rsquo; pseudo-op.
  85. </p>
  86. <a name="index-_002dmbig_002dendian"></a>
  87. </dd>
  88. <dt><code>-mbig-endian</code></dt>
  89. <dd><p>This option controls the ABI and indicates to use a big-endian data
  90. ABI. It has no effect on the assembled instructions, but it does
  91. influence the behaviour of the &lsquo;<samp>.short</samp>&rsquo;, &lsquo;<samp>.hword</samp>&rsquo;, &lsquo;<samp>.int</samp>&rsquo;,
  92. &lsquo;<samp>.word</samp>&rsquo;, &lsquo;<samp>.long</samp>&rsquo;, &lsquo;<samp>.quad</samp>&rsquo; and &lsquo;<samp>.octa</samp>&rsquo; pseudo-ops.
  93. </p>
  94. <a name="index-_002dmlittle_002dendian"></a>
  95. </dd>
  96. <dt><code>-mlittle-endian</code></dt>
  97. <dd><p>This option controls the ABI and indicates to use a little-endian data
  98. ABI. It has no effect on the assembled instructions, but it does
  99. influence the behaviour of the &lsquo;<samp>.short</samp>&rsquo;, &lsquo;<samp>.hword</samp>&rsquo;, &lsquo;<samp>.int</samp>&rsquo;,
  100. &lsquo;<samp>.word</samp>&rsquo;, &lsquo;<samp>.long</samp>&rsquo;, &lsquo;<samp>.quad</samp>&rsquo; and &lsquo;<samp>.octa</samp>&rsquo; pseudo-ops.
  101. This is the default.
  102. </p>
  103. <a name="index-_002dmuse_002dconventional_002dsection_002dnames"></a>
  104. </dd>
  105. <dt><code>-muse-conventional-section-names</code></dt>
  106. <dd><p>This option controls the default names given to the code (.text),
  107. initialised data (.data) and uninitialised data sections (.bss).
  108. </p>
  109. <a name="index-_002dmuse_002drenesas_002dsection_002dnames"></a>
  110. </dd>
  111. <dt><code>-muse-renesas-section-names</code></dt>
  112. <dd><p>This option controls the default names given to the code (.P),
  113. initialised data (.D_1) and uninitialised data sections (.B_1).
  114. This is the default.
  115. </p>
  116. <a name="index-_002dmsmall_002ddata_002dlimit"></a>
  117. </dd>
  118. <dt><code>-msmall-data-limit</code></dt>
  119. <dd><p>This option tells the assembler that the small data limit feature of
  120. the RX port of GCC is being used. This results in the assembler
  121. generating an undefined reference to a symbol called <code>__gp</code> for
  122. use by the relocations that are needed to support the small data limit
  123. feature. This option is not enabled by default as it would otherwise
  124. pollute the symbol table.
  125. </p>
  126. <a name="index-_002dmpid"></a>
  127. </dd>
  128. <dt><code>-mpid</code></dt>
  129. <dd><p>This option tells the assembler that the position independent data of the
  130. RX port of GCC is being used. This results in the assembler
  131. generating an undefined reference to a symbol called <code>__pid_base</code>,
  132. and also setting the RX_PID flag bit in the e_flags field of the ELF
  133. header of the object file.
  134. </p>
  135. <a name="index-_002dmint_002dregister"></a>
  136. </dd>
  137. <dt><code>-mint-register=<var>num</var></code></dt>
  138. <dd><p>This option tells the assembler how many registers have been reserved
  139. for use by interrupt handlers. This is needed in order to compute the
  140. correct values for the <code>%gpreg</code> and <code>%pidreg</code> meta registers.
  141. </p>
  142. <a name="index-_002dmgcc_002dabi"></a>
  143. </dd>
  144. <dt><code>-mgcc-abi</code></dt>
  145. <dd><p>This option tells the assembler that the old GCC ABI is being used by
  146. the assembled code. With this version of the ABI function arguments
  147. that are passed on the stack are aligned to a 32-bit boundary.
  148. </p>
  149. <a name="index-_002dmrx_002dabi"></a>
  150. </dd>
  151. <dt><code>-mrx-abi</code></dt>
  152. <dd><p>This option tells the assembler that the official RX ABI is being used
  153. by the assembled code. With this version of the ABI function
  154. arguments that are passed on the stack are aligned to their natural
  155. alignments. This option is the default.
  156. </p>
  157. <a name="index-_002dmcpu_003d"></a>
  158. </dd>
  159. <dt><code>-mcpu=<var>name</var></code></dt>
  160. <dd><p>This option tells the assembler the target CPU type. Currently the
  161. <code>rx100</code>, <code>rx200</code>, <code>rx600</code>, <code>rx610</code>, <code>rxv2</code>,
  162. <code>rxv3</code> and <code>rxv3-dfpu</code> are recognised as valid cpu names.
  163. Attempting to assemble an instructionnot supported by the indicated
  164. cpu type will result in an error message being generated.
  165. </p>
  166. <a name="index-_002dmno_002dallow_002dstring_002dinsns"></a>
  167. </dd>
  168. <dt><code>-mno-allow-string-insns</code></dt>
  169. <dd><p>This option tells the assembler to mark the object file that it is
  170. building as one that does not use the string instructions
  171. <code>SMOVF</code>, <code>SCMPU</code>, <code>SMOVB</code>, <code>SMOVU</code>, <code>SUNTIL</code>
  172. <code>SWHILE</code> or the <code>RMPA</code> instruction. In addition the mark
  173. tells the linker to complain if an attempt is made to link the binary
  174. with another one that does use any of these instructions.
  175. </p>
  176. <p>Note - the inverse of this option, <code>-mallow-string-insns</code>, is
  177. not needed. The assembler automatically detects the use of the
  178. the instructions in the source code and labels the resulting
  179. object file appropriately. If no string instructions are detected
  180. then the object file is labelled as being one that can be linked with
  181. either string-using or string-banned object files.
  182. </p></dd>
  183. </dl>
  184. <hr>
  185. <div class="header">
  186. <p>
  187. Next: <a href="RX_002dModifiers.html#RX_002dModifiers" accesskey="n" rel="next">RX-Modifiers</a>, Up: <a href="RX_002dDependent.html#RX_002dDependent" accesskey="u" rel="up">RX-Dependent</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
  188. </div>
  189. </body>
  190. </html>