ARC-Options.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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-2017 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 5.2, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <title>Using as: ARC Options</title>
  15. <meta name="description" content="Using as: ARC Options">
  16. <meta name="keywords" content="Using as: ARC Options">
  17. <meta name="resource-type" content="document">
  18. <meta name="distribution" content="global">
  19. <meta name="Generator" content="makeinfo">
  20. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  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="ARC_002dDependent.html#ARC_002dDependent" rel="up" title="ARC-Dependent">
  25. <link href="ARC-Syntax.html#ARC-Syntax" rel="next" title="ARC Syntax">
  26. <link href="ARC_002dDependent.html#ARC_002dDependent" rel="prev" title="ARC-Dependent">
  27. <style type="text/css">
  28. <!--
  29. a.summary-letter {text-decoration: none}
  30. blockquote.smallquotation {font-size: smaller}
  31. div.display {margin-left: 3.2em}
  32. div.example {margin-left: 3.2em}
  33. div.indentedblock {margin-left: 3.2em}
  34. div.lisp {margin-left: 3.2em}
  35. div.smalldisplay {margin-left: 3.2em}
  36. div.smallexample {margin-left: 3.2em}
  37. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  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.nocodebreak {white-space:nowrap}
  49. span.nolinebreak {white-space:nowrap}
  50. span.roman {font-family:serif; font-weight:normal}
  51. span.sansserif {font-family:sans-serif; font-weight:normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  57. <a name="ARC-Options"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="ARC-Syntax.html#ARC-Syntax" accesskey="n" rel="next">ARC Syntax</a>, Up: <a href="ARC_002dDependent.html#ARC_002dDependent" accesskey="u" rel="up">ARC-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>
  61. </div>
  62. <hr>
  63. <a name="Options-2"></a>
  64. <h4 class="subsection">9.3.1 Options</h4>
  65. <a name="index-ARC-options"></a>
  66. <a name="index-options-for-ARC"></a>
  67. <p>The following options control the type of CPU for which code is
  68. assembled, and generic constraints on the code generated:
  69. </p>
  70. <dl compact="compact">
  71. <dt><code>-mcpu=<var>cpu</var></code></dt>
  72. <dd><a name="index-_002dmcpu_003dcpu-command-line-option_002c-ARC"></a>
  73. <p>Set architecture type and register usage for <var>cpu</var>. There are
  74. also shortcut alias options available for backward compatibility and
  75. convenience. Supported values for <var>cpu</var> are
  76. </p>
  77. <dl compact="compact">
  78. <dd><a name="index-mA6-command-line-option_002c-ARC"></a>
  79. <a name="index-marc600-command-line-option_002c-ARC"></a>
  80. </dd>
  81. <dt><code>arc600</code></dt>
  82. <dd><p>Assemble for ARC 600. Aliases: <code>-mA6</code>, <code>-mARC600</code>.
  83. </p>
  84. </dd>
  85. <dt><code>arc600_norm</code></dt>
  86. <dd><p>Assemble for ARC 600 with norm instructions.
  87. </p>
  88. </dd>
  89. <dt><code>arc600_mul64</code></dt>
  90. <dd><p>Assemble for ARC 600 with mul64 instructions.
  91. </p>
  92. </dd>
  93. <dt><code>arc600_mul32x16</code></dt>
  94. <dd><p>Assemble for ARC 600 with mul32x16 instructions.
  95. </p>
  96. </dd>
  97. <dt><code>arc601</code></dt>
  98. <dd><a name="index-mARC601-command-line-option_002c-ARC"></a>
  99. <p>Assemble for ARC 601. Alias: <code>-mARC601</code>.
  100. </p>
  101. </dd>
  102. <dt><code>arc601_norm</code></dt>
  103. <dd><p>Assemble for ARC 601 with norm instructions.
  104. </p>
  105. </dd>
  106. <dt><code>arc601_mul64</code></dt>
  107. <dd><p>Assemble for ARC 601 with mul64 instructions.
  108. </p>
  109. </dd>
  110. <dt><code>arc601_mul32x16</code></dt>
  111. <dd><p>Assemble for ARC 601 with mul32x16 instructions.
  112. </p>
  113. </dd>
  114. <dt><code>arc700</code></dt>
  115. <dd><a name="index-mA7-command-line-option_002c-ARC"></a>
  116. <a name="index-mARC700-command-line-option_002c-ARC"></a>
  117. <p>Assemble for ARC 700. Aliases: <code>-mA7</code>, <code>-mARC700</code>.
  118. </p>
  119. </dd>
  120. <dt><code>arcem</code></dt>
  121. <dd><a name="index-mEM-command-line-option_002c-ARC"></a>
  122. <p>Assemble for ARC EM. Aliases: <code>-mEM</code>
  123. </p>
  124. </dd>
  125. <dt><code>em</code></dt>
  126. <dd><p>Assemble for ARC EM, identical as arcem variant.
  127. </p>
  128. </dd>
  129. <dt><code>em4</code></dt>
  130. <dd><p>Assemble for ARC EM with code-density instructions.
  131. </p>
  132. </dd>
  133. <dt><code>em4_dmips</code></dt>
  134. <dd><p>Assemble for ARC EM with code-density instructions.
  135. </p>
  136. </dd>
  137. <dt><code>em4_fpus</code></dt>
  138. <dd><p>Assemble for ARC EM with code-density instructions.
  139. </p>
  140. </dd>
  141. <dt><code>em4_fpuda</code></dt>
  142. <dd><p>Assemble for ARC EM with code-density, and double-precision assist
  143. instructions.
  144. </p>
  145. </dd>
  146. <dt><code>quarkse_em</code></dt>
  147. <dd><p>Assemble for QuarkSE-EM cpu.
  148. </p>
  149. </dd>
  150. <dt><code>archs</code></dt>
  151. <dd><a name="index-mHS-command-line-option_002c-ARC"></a>
  152. <p>Assemble for ARC HS. Aliases: <code>-mHS</code>, <code>-mav2hs</code>.
  153. </p>
  154. </dd>
  155. <dt><code>hs</code></dt>
  156. <dd><p>Assemble for ARC HS.
  157. </p>
  158. </dd>
  159. <dt><code>hs34</code></dt>
  160. <dd><p>Assemble for ARC HS34.
  161. </p>
  162. </dd>
  163. <dt><code>hs38</code></dt>
  164. <dd><p>Assemble for ARC HS38.
  165. </p>
  166. </dd>
  167. <dt><code>hs38_linux</code></dt>
  168. <dd><p>Assemble for ARC HS38 with floating point support on.
  169. </p>
  170. </dd>
  171. <dt><code>nps400</code></dt>
  172. <dd><a name="index-mnps400-command-line-option_002c-ARC"></a>
  173. <p>Assemble for ARC 700 with NPS-400 extended instructions.
  174. </p>
  175. </dd>
  176. </dl>
  177. <p>Note: the <code>.cpu</code> directive (see <a href="ARC-Directives.html#ARC-Directives">ARC Directives</a>) can
  178. to be used to select a core variant from within assembly code.
  179. </p>
  180. <a name="index-_002dEB-command-line-option_002c-ARC"></a>
  181. </dd>
  182. <dt><code>-EB</code></dt>
  183. <dd><p>This option specifies that the output generated by the assembler should
  184. be marked as being encoded for a big-endian processor.
  185. </p>
  186. <a name="index-_002dEL-command-line-option_002c-ARC"></a>
  187. </dd>
  188. <dt><code>-EL</code></dt>
  189. <dd><p>This option specifies that the output generated by the assembler should
  190. be marked as being encoded for a little-endian processor - this is the
  191. default.
  192. </p>
  193. <a name="index-_002dmcode_002ddensity-command-line-option_002c-ARC"></a>
  194. </dd>
  195. <dt><code>-mcode-density</code></dt>
  196. <dd><p>This option turns on Code Density instructions. Only valid for ARC EM
  197. processors.
  198. </p>
  199. <a name="index-_002dmrelax-command-line-option_002c-ARC"></a>
  200. </dd>
  201. <dt><code>-mrelax</code></dt>
  202. <dd><p>Enable support for assembly-time relaxation. The assembler will
  203. replace a longer version of an instruction with a shorter one,
  204. whenever it is possible.
  205. </p>
  206. <a name="index-_002dmnps400-command-line-option_002c-ARC"></a>
  207. </dd>
  208. <dt><code>-mnps400</code></dt>
  209. <dd><p>Enable support for NPS-400 extended instructions.
  210. </p>
  211. <a name="index-_002dmspfp-command-line-option_002c-ARC"></a>
  212. </dd>
  213. <dt><code>-mspfp</code></dt>
  214. <dd><p>Enable support for single-precision floating point instructions.
  215. </p>
  216. <a name="index-_002dmdpfp-command-line-option_002c-ARC"></a>
  217. </dd>
  218. <dt><code>-mdpfp</code></dt>
  219. <dd><p>Enable support for double-precision floating point instructions.
  220. </p>
  221. <a name="index-_002dmfpuda-command-line-option_002c-ARC"></a>
  222. </dd>
  223. <dt><code>-mfpuda</code></dt>
  224. <dd><p>Enable support for double-precision assist floating point instructions.
  225. Only valid for ARC EM processors.
  226. </p>
  227. </dd>
  228. </dl>
  229. <hr>
  230. <div class="header">
  231. <p>
  232. Next: <a href="ARC-Syntax.html#ARC-Syntax" accesskey="n" rel="next">ARC Syntax</a>, Up: <a href="ARC_002dDependent.html#ARC_002dDependent" accesskey="u" rel="up">ARC-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>
  233. </div>
  234. </body>
  235. </html>