Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

1608 Zeilen
62KB

  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>Overview (Using as)</title>
  16. <meta name="description" content="Overview (Using as)">
  17. <meta name="keywords" content="Overview (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="index.html#Top" rel="up" title="Top">
  25. <link href="Manual.html#Manual" rel="next" title="Manual">
  26. <link href="index.html#Top" rel="prev" title="Top">
  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="Overview"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="Invoking.html#Invoking" accesskey="n" rel="next">Invoking</a>, Previous: <a href="index.html#Top" accesskey="p" rel="prev">Top</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</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="Overview-1"></a>
  63. <h2 class="chapter">1 Overview</h2>
  64. <a name="index-invocation-summary"></a>
  65. <a name="index-option-summary"></a>
  66. <a name="index-summary-of-options"></a>
  67. <p>Here is a brief summary of how to invoke <code>as</code>. For details,
  68. see <a href="Invoking.html#Invoking">Command-Line Options</a>.
  69. </p>
  70. <div class="smallexample">
  71. <pre class="smallexample">as [<b>-a</b>[<b>cdghlns</b>][=<var>file</var>]] [<b>&ndash;alternate</b>] [<b>-D</b>]
  72. [<b>&ndash;compress-debug-sections</b>] [<b>&ndash;nocompress-debug-sections</b>]
  73. [<b>&ndash;debug-prefix-map</b> <var>old</var>=<var>new</var>]
  74. [<b>&ndash;defsym</b> <var>sym</var>=<var>val</var>] [<b>-f</b>] [<b>-g</b>] [<b>&ndash;gstabs</b>]
  75. [<b>&ndash;gstabs+</b>] [<b>&ndash;gdwarf-&lt;N&gt;</b>] [<b>&ndash;gdwarf-sections</b>]
  76. [<b>&ndash;gdwarf-cie-version</b>=<var>VERSION</var>]
  77. [<b>&ndash;help</b>] [<b>-I</b> <var>dir</var>] [<b>-J</b>]
  78. [<b>-K</b>] [<b>-L</b>] [<b>&ndash;listing-lhs-width</b>=<var>NUM</var>]
  79. [<b>&ndash;listing-lhs-width2</b>=<var>NUM</var>] [<b>&ndash;listing-rhs-width</b>=<var>NUM</var>]
  80. [<b>&ndash;listing-cont-lines</b>=<var>NUM</var>] [<b>&ndash;keep-locals</b>]
  81. [<b>&ndash;no-pad-sections</b>]
  82. [<b>-o</b> <var>objfile</var>] [<b>-R</b>]
  83. [<b>&ndash;hash-size</b>=<var>NUM</var>] [<b>&ndash;reduce-memory-overheads</b>]
  84. [<b>&ndash;statistics</b>]
  85. [<b>-v</b>] [<b>-version</b>] [<b>&ndash;version</b>]
  86. [<b>-W</b>] [<b>&ndash;warn</b>] [<b>&ndash;fatal-warnings</b>] [<b>-w</b>] [<b>-x</b>]
  87. [<b>-Z</b>] [<b>@<var>FILE</var></b>]
  88. [<b>&ndash;sectname-subst</b>] [<b>&ndash;size-check=[error|warning]</b>]
  89. [<b>&ndash;elf-stt-common=[no|yes]</b>]
  90. [<b>&ndash;generate-missing-build-notes=[no|yes]</b>]
  91. [<b>&ndash;target-help</b>] [<var>target-options</var>]
  92. [<b>&ndash;</b>|<var>files</var> &hellip;]
  93. <em>Target AArch64 options:</em>
  94. [<b>-EB</b>|<b>-EL</b>]
  95. [<b>-mabi</b>=<var>ABI</var>]
  96. <em>Target Alpha options:</em>
  97. [<b>-m<var>cpu</var></b>]
  98. [<b>-mdebug</b> | <b>-no-mdebug</b>]
  99. [<b>-replace</b> | <b>-noreplace</b>]
  100. [<b>-relax</b>] [<b>-g</b>] [<b>-G<var>size</var></b>]
  101. [<b>-F</b>] [<b>-32addr</b>]
  102. <em>Target ARC options:</em>
  103. [<b>-mcpu=<var>cpu</var></b>]
  104. [<b>-mA6</b>|<b>-mARC600</b>|<b>-mARC601</b>|<b>-mA7</b>|<b>-mARC700</b>|<b>-mEM</b>|<b>-mHS</b>]
  105. [<b>-mcode-density</b>]
  106. [<b>-mrelax</b>]
  107. [<b>-EB</b>|<b>-EL</b>]
  108. <em>Target ARM options:</em>
  109. [<b>-mcpu</b>=<var>processor</var>[+<var>extension</var>&hellip;]]
  110. [<b>-march</b>=<var>architecture</var>[+<var>extension</var>&hellip;]]
  111. [<b>-mfpu</b>=<var>floating-point-format</var>]
  112. [<b>-mfloat-abi</b>=<var>abi</var>]
  113. [<b>-meabi</b>=<var>ver</var>]
  114. [<b>-mthumb</b>]
  115. [<b>-EB</b>|<b>-EL</b>]
  116. [<b>-mapcs-32</b>|<b>-mapcs-26</b>|<b>-mapcs-float</b>|
  117. <b>-mapcs-reentrant</b>]
  118. [<b>-mthumb-interwork</b>] [<b>-k</b>]
  119. <em>Target Blackfin options:</em>
  120. [<b>-mcpu</b>=<var>processor</var>[-<var>sirevision</var>]]
  121. [<b>-mfdpic</b>]
  122. [<b>-mno-fdpic</b>]
  123. [<b>-mnopic</b>]
  124. <em>Target BPF options:</em>
  125. [<b>-EL</b>] [<b>-EB</b>]
  126. <em>Target CRIS options:</em>
  127. [<b>&ndash;underscore</b> | <b>&ndash;no-underscore</b>]
  128. [<b>&ndash;pic</b>] [<b>-N</b>]
  129. [<b>&ndash;emulation=criself</b> | <b>&ndash;emulation=crisaout</b>]
  130. [<b>&ndash;march=v0_v10</b> | <b>&ndash;march=v10</b> | <b>&ndash;march=v32</b> | <b>&ndash;march=common_v10_v32</b>]
  131. <em>Target C-SKY options:</em>
  132. [<b>-march=<var>arch</var></b>] [<b>-mcpu=<var>cpu</var></b>]
  133. [<b>-EL</b>] [<b>-mlittle-endian</b>] [<b>-EB</b>] [<b>-mbig-endian</b>]
  134. [<b>-fpic</b>] [<b>-pic</b>]
  135. [<b>-mljump</b>] [<b>-mno-ljump</b>]
  136. [<b>-force2bsr</b>] [<b>-mforce2bsr</b>] [<b>-no-force2bsr</b>] [<b>-mno-force2bsr</b>]
  137. [<b>-jsri2bsr</b>] [<b>-mjsri2bsr</b>] [<b>-no-jsri2bsr </b>] [<b>-mno-jsri2bsr</b>]
  138. [<b>-mnolrw </b>] [<b>-mno-lrw</b>]
  139. [<b>-melrw</b>] [<b>-mno-elrw</b>]
  140. [<b>-mlaf </b>] [<b>-mliterals-after-func</b>]
  141. [<b>-mno-laf</b>] [<b>-mno-literals-after-func</b>]
  142. [<b>-mlabr</b>] [<b>-mliterals-after-br</b>]
  143. [<b>-mno-labr</b>] [<b>-mnoliterals-after-br</b>]
  144. [<b>-mistack</b>] [<b>-mno-istack</b>]
  145. [<b>-mhard-float</b>] [<b>-mmp</b>] [<b>-mcp</b>] [<b>-mcache</b>]
  146. [<b>-msecurity</b>] [<b>-mtrust</b>]
  147. [<b>-mdsp</b>] [<b>-medsp</b>] [<b>-mvdsp</b>]
  148. <em>Target D10V options:</em>
  149. [<b>-O</b>]
  150. <em>Target D30V options:</em>
  151. [<b>-O</b>|<b>-n</b>|<b>-N</b>]
  152. <em>Target EPIPHANY options:</em>
  153. [<b>-mepiphany</b>|<b>-mepiphany16</b>]
  154. <em>Target H8/300 options:</em>
  155. [-h-tick-hex]
  156. <em>Target i386 options:</em>
  157. [<b>&ndash;32</b>|<b>&ndash;x32</b>|<b>&ndash;64</b>] [<b>-n</b>]
  158. [<b>-march</b>=<var>CPU</var>[+<var>EXTENSION</var>&hellip;]] [<b>-mtune</b>=<var>CPU</var>]
  159. <em>Target IA-64 options:</em>
  160. [<b>-mconstant-gp</b>|<b>-mauto-pic</b>]
  161. [<b>-milp32</b>|<b>-milp64</b>|<b>-mlp64</b>|<b>-mp64</b>]
  162. [<b>-mle</b>|<b>mbe</b>]
  163. [<b>-mtune=itanium1</b>|<b>-mtune=itanium2</b>]
  164. [<b>-munwind-check=warning</b>|<b>-munwind-check=error</b>]
  165. [<b>-mhint.b=ok</b>|<b>-mhint.b=warning</b>|<b>-mhint.b=error</b>]
  166. [<b>-x</b>|<b>-xexplicit</b>] [<b>-xauto</b>] [<b>-xdebug</b>]
  167. <em>Target IP2K options:</em>
  168. [<b>-mip2022</b>|<b>-mip2022ext</b>]
  169. <em>Target M32C options:</em>
  170. [<b>-m32c</b>|<b>-m16c</b>] [-relax] [-h-tick-hex]
  171. <em>Target M32R options:</em>
  172. [<b>&ndash;m32rx</b>|<b>&ndash;[no-]warn-explicit-parallel-conflicts</b>|
  173. <b>&ndash;W[n]p</b>]
  174. <em>Target M680X0 options:</em>
  175. [<b>-l</b>] [<b>-m68000</b>|<b>-m68010</b>|<b>-m68020</b>|&hellip;]
  176. <em>Target M68HC11 options:</em>
  177. [<b>-m68hc11</b>|<b>-m68hc12</b>|<b>-m68hcs12</b>|<b>-mm9s12x</b>|<b>-mm9s12xg</b>]
  178. [<b>-mshort</b>|<b>-mlong</b>]
  179. [<b>-mshort-double</b>|<b>-mlong-double</b>]
  180. [<b>&ndash;force-long-branches</b>] [<b>&ndash;short-branches</b>]
  181. [<b>&ndash;strict-direct-mode</b>] [<b>&ndash;print-insn-syntax</b>]
  182. [<b>&ndash;print-opcodes</b>] [<b>&ndash;generate-example</b>]
  183. <em>Target MCORE options:</em>
  184. [<b>-jsri2bsr</b>] [<b>-sifilter</b>] [<b>-relax</b>]
  185. [<b>-mcpu=[210|340]</b>]
  186. <em>Target Meta options:</em>
  187. [<b>-mcpu=<var>cpu</var></b>] [<b>-mfpu=<var>cpu</var></b>] [<b>-mdsp=<var>cpu</var></b>]
  188. <em>Target MICROBLAZE options:</em>
  189. <em>Target MIPS options:</em>
  190. [<b>-nocpp</b>] [<b>-EL</b>] [<b>-EB</b>] [<b>-O</b>[<var>optimization level</var>]]
  191. [<b>-g</b>[<var>debug level</var>]] [<b>-G</b> <var>num</var>] [<b>-KPIC</b>] [<b>-call_shared</b>]
  192. [<b>-non_shared</b>] [<b>-xgot</b> [<b>-mvxworks-pic</b>]
  193. [<b>-mabi</b>=<var>ABI</var>] [<b>-32</b>] [<b>-n32</b>] [<b>-64</b>] [<b>-mfp32</b>] [<b>-mgp32</b>]
  194. [<b>-mfp64</b>] [<b>-mgp64</b>] [<b>-mfpxx</b>]
  195. [<b>-modd-spreg</b>] [<b>-mno-odd-spreg</b>]
  196. [<b>-march</b>=<var>CPU</var>] [<b>-mtune</b>=<var>CPU</var>] [<b>-mips1</b>] [<b>-mips2</b>]
  197. [<b>-mips3</b>] [<b>-mips4</b>] [<b>-mips5</b>] [<b>-mips32</b>] [<b>-mips32r2</b>]
  198. [<b>-mips32r3</b>] [<b>-mips32r5</b>] [<b>-mips32r6</b>] [<b>-mips64</b>] [<b>-mips64r2</b>]
  199. [<b>-mips64r3</b>] [<b>-mips64r5</b>] [<b>-mips64r6</b>]
  200. [<b>-construct-floats</b>] [<b>-no-construct-floats</b>]
  201. [<b>-mignore-branch-isa</b>] [<b>-mno-ignore-branch-isa</b>]
  202. [<b>-mnan=<var>encoding</var></b>]
  203. [<b>-trap</b>] [<b>-no-break</b>] [<b>-break</b>] [<b>-no-trap</b>]
  204. [<b>-mips16</b>] [<b>-no-mips16</b>]
  205. [<b>-mmips16e2</b>] [<b>-mno-mips16e2</b>]
  206. [<b>-mmicromips</b>] [<b>-mno-micromips</b>]
  207. [<b>-msmartmips</b>] [<b>-mno-smartmips</b>]
  208. [<b>-mips3d</b>] [<b>-no-mips3d</b>]
  209. [<b>-mdmx</b>] [<b>-no-mdmx</b>]
  210. [<b>-mdsp</b>] [<b>-mno-dsp</b>]
  211. [<b>-mdspr2</b>] [<b>-mno-dspr2</b>]
  212. [<b>-mdspr3</b>] [<b>-mno-dspr3</b>]
  213. [<b>-mmsa</b>] [<b>-mno-msa</b>]
  214. [<b>-mxpa</b>] [<b>-mno-xpa</b>]
  215. [<b>-mmt</b>] [<b>-mno-mt</b>]
  216. [<b>-mmcu</b>] [<b>-mno-mcu</b>]
  217. [<b>-mcrc</b>] [<b>-mno-crc</b>]
  218. [<b>-mginv</b>] [<b>-mno-ginv</b>]
  219. [<b>-mloongson-mmi</b>] [<b>-mno-loongson-mmi</b>]
  220. [<b>-mloongson-cam</b>] [<b>-mno-loongson-cam</b>]
  221. [<b>-mloongson-ext</b>] [<b>-mno-loongson-ext</b>]
  222. [<b>-mloongson-ext2</b>] [<b>-mno-loongson-ext2</b>]
  223. [<b>-minsn32</b>] [<b>-mno-insn32</b>]
  224. [<b>-mfix7000</b>] [<b>-mno-fix7000</b>]
  225. [<b>-mfix-rm7000</b>] [<b>-mno-fix-rm7000</b>]
  226. [<b>-mfix-vr4120</b>] [<b>-mno-fix-vr4120</b>]
  227. [<b>-mfix-vr4130</b>] [<b>-mno-fix-vr4130</b>]
  228. [<b>-mfix-r5900</b>] [<b>-mno-fix-r5900</b>]
  229. [<b>-mdebug</b>] [<b>-no-mdebug</b>]
  230. [<b>-mpdr</b>] [<b>-mno-pdr</b>]
  231. <em>Target MMIX options:</em>
  232. [<b>&ndash;fixed-special-register-names</b>] [<b>&ndash;globalize-symbols</b>]
  233. [<b>&ndash;gnu-syntax</b>] [<b>&ndash;relax</b>] [<b>&ndash;no-predefined-symbols</b>]
  234. [<b>&ndash;no-expand</b>] [<b>&ndash;no-merge-gregs</b>] [<b>-x</b>]
  235. [<b>&ndash;linker-allocated-gregs</b>]
  236. <em>Target Nios II options:</em>
  237. [<b>-relax-all</b>] [<b>-relax-section</b>] [<b>-no-relax</b>]
  238. [<b>-EB</b>] [<b>-EL</b>]
  239. <em>Target NDS32 options:</em>
  240. [<b>-EL</b>] [<b>-EB</b>] [<b>-O</b>] [<b>-Os</b>] [<b>-mcpu=<var>cpu</var></b>]
  241. [<b>-misa=<var>isa</var></b>] [<b>-mabi=<var>abi</var></b>] [<b>-mall-ext</b>]
  242. [<b>-m[no-]16-bit</b>] [<b>-m[no-]perf-ext</b>] [<b>-m[no-]perf2-ext</b>]
  243. [<b>-m[no-]string-ext</b>] [<b>-m[no-]dsp-ext</b>] [<b>-m[no-]mac</b>] [<b>-m[no-]div</b>]
  244. [<b>-m[no-]audio-isa-ext</b>] [<b>-m[no-]fpu-sp-ext</b>] [<b>-m[no-]fpu-dp-ext</b>]
  245. [<b>-m[no-]fpu-fma</b>] [<b>-mfpu-freg=<var>FREG</var></b>] [<b>-mreduced-regs</b>]
  246. [<b>-mfull-regs</b>] [<b>-m[no-]dx-regs</b>] [<b>-mpic</b>] [<b>-mno-relax</b>]
  247. [<b>-mb2bb</b>]
  248. <em>Target PDP11 options:</em>
  249. [<b>-mpic</b>|<b>-mno-pic</b>] [<b>-mall</b>] [<b>-mno-extensions</b>]
  250. [<b>-m</b><var>extension</var>|<b>-mno-</b><var>extension</var>]
  251. [<b>-m</b><var>cpu</var>] [<b>-m</b><var>machine</var>]
  252. <em>Target picoJava options:</em>
  253. [<b>-mb</b>|<b>-me</b>]
  254. <em>Target PowerPC options:</em>
  255. [<b>-a32</b>|<b>-a64</b>]
  256. [<b>-mpwrx</b>|<b>-mpwr2</b>|<b>-mpwr</b>|<b>-m601</b>|<b>-mppc</b>|<b>-mppc32</b>|<b>-m603</b>|<b>-m604</b>|<b>-m403</b>|<b>-m405</b>|
  257. <b>-m440</b>|<b>-m464</b>|<b>-m476</b>|<b>-m7400</b>|<b>-m7410</b>|<b>-m7450</b>|<b>-m7455</b>|<b>-m750cl</b>|<b>-mgekko</b>|
  258. <b>-mbroadway</b>|<b>-mppc64</b>|<b>-m620</b>|<b>-me500</b>|<b>-e500x2</b>|<b>-me500mc</b>|<b>-me500mc64</b>|<b>-me5500</b>|
  259. <b>-me6500</b>|<b>-mppc64bridge</b>|<b>-mbooke</b>|<b>-mpower4</b>|<b>-mpwr4</b>|<b>-mpower5</b>|<b>-mpwr5</b>|<b>-mpwr5x</b>|
  260. <b>-mpower6</b>|<b>-mpwr6</b>|<b>-mpower7</b>|<b>-mpwr7</b>|<b>-mpower8</b>|<b>-mpwr8</b>|<b>-mpower9</b>|<b>-mpwr9</b><b>-ma2</b>|
  261. <b>-mcell</b>|<b>-mspe</b>|<b>-mspe2</b>|<b>-mtitan</b>|<b>-me300</b>|<b>-mcom</b>]
  262. [<b>-many</b>] [<b>-maltivec</b>|<b>-mvsx</b>|<b>-mhtm</b>|<b>-mvle</b>]
  263. [<b>-mregnames</b>|<b>-mno-regnames</b>]
  264. [<b>-mrelocatable</b>|<b>-mrelocatable-lib</b>|<b>-K PIC</b>] [<b>-memb</b>]
  265. [<b>-mlittle</b>|<b>-mlittle-endian</b>|<b>-le</b>|<b>-mbig</b>|<b>-mbig-endian</b>|<b>-be</b>]
  266. [<b>-msolaris</b>|<b>-mno-solaris</b>]
  267. [<b>-nops=<var>count</var></b>]
  268. <em>Target PRU options:</em>
  269. [<b>-link-relax</b>]
  270. [<b>-mnolink-relax</b>]
  271. [<b>-mno-warn-regname-label</b>]
  272. <em>Target RISC-V options:</em>
  273. [<b>-fpic</b>|<b>-fPIC</b>|<b>-fno-pic</b>]
  274. [<b>-march</b>=<var>ISA</var>]
  275. [<b>-mabi</b>=<var>ABI</var>]
  276. <em>Target RL78 options:</em>
  277. [<b>-mg10</b>]
  278. [<b>-m32bit-doubles</b>|<b>-m64bit-doubles</b>]
  279. <em>Target RX options:</em>
  280. [<b>-mlittle-endian</b>|<b>-mbig-endian</b>]
  281. [<b>-m32bit-doubles</b>|<b>-m64bit-doubles</b>]
  282. [<b>-muse-conventional-section-names</b>]
  283. [<b>-msmall-data-limit</b>]
  284. [<b>-mpid</b>]
  285. [<b>-mrelax</b>]
  286. [<b>-mint-register=<var>number</var></b>]
  287. [<b>-mgcc-abi</b>|<b>-mrx-abi</b>]
  288. <em>Target s390 options:</em>
  289. [<b>-m31</b>|<b>-m64</b>] [<b>-mesa</b>|<b>-mzarch</b>] [<b>-march</b>=<var>CPU</var>]
  290. [<b>-mregnames</b>|<b>-mno-regnames</b>]
  291. [<b>-mwarn-areg-zero</b>]
  292. <em>Target SCORE options:</em>
  293. [<b>-EB</b>][<b>-EL</b>][<b>-FIXDD</b>][<b>-NWARN</b>]
  294. [<b>-SCORE5</b>][<b>-SCORE5U</b>][<b>-SCORE7</b>][<b>-SCORE3</b>]
  295. [<b>-march=score7</b>][<b>-march=score3</b>]
  296. [<b>-USE_R1</b>][<b>-KPIC</b>][<b>-O0</b>][<b>-G</b> <var>num</var>][<b>-V</b>]
  297. <em>Target SPARC options:</em>
  298. [<b>-Av6</b>|<b>-Av7</b>|<b>-Av8</b>|<b>-Aleon</b>|<b>-Asparclet</b>|<b>-Asparclite</b>
  299. <b>-Av8plus</b>|<b>-Av8plusa</b>|<b>-Av8plusb</b>|<b>-Av8plusc</b>|<b>-Av8plusd</b>
  300. <b>-Av8plusv</b>|<b>-Av8plusm</b>|<b>-Av9</b>|<b>-Av9a</b>|<b>-Av9b</b>|<b>-Av9c</b>
  301. <b>-Av9d</b>|<b>-Av9e</b>|<b>-Av9v</b>|<b>-Av9m</b>|<b>-Asparc</b>|<b>-Asparcvis</b>
  302. <b>-Asparcvis2</b>|<b>-Asparcfmaf</b>|<b>-Asparcima</b>|<b>-Asparcvis3</b>
  303. <b>-Asparcvisr</b>|<b>-Asparc5</b>]
  304. [<b>-xarch=v8plus</b>|<b>-xarch=v8plusa</b>]|<b>-xarch=v8plusb</b>|<b>-xarch=v8plusc</b>
  305. <b>-xarch=v8plusd</b>|<b>-xarch=v8plusv</b>|<b>-xarch=v8plusm</b>|<b>-xarch=v9</b>
  306. <b>-xarch=v9a</b>|<b>-xarch=v9b</b>|<b>-xarch=v9c</b>|<b>-xarch=v9d</b>|<b>-xarch=v9e</b>
  307. <b>-xarch=v9v</b>|<b>-xarch=v9m</b>|<b>-xarch=sparc</b>|<b>-xarch=sparcvis</b>
  308. <b>-xarch=sparcvis2</b>|<b>-xarch=sparcfmaf</b>|<b>-xarch=sparcima</b>
  309. <b>-xarch=sparcvis3</b>|<b>-xarch=sparcvisr</b>|<b>-xarch=sparc5</b>
  310. <b>-bump</b>]
  311. [<b>-32</b>|<b>-64</b>]
  312. [<b>&ndash;enforce-aligned-data</b>][<b>&ndash;dcti-couples-detect</b>]
  313. <em>Target TIC54X options:</em>
  314. [<b>-mcpu=54[123589]</b>|<b>-mcpu=54[56]lp</b>] [<b>-mfar-mode</b>|<b>-mf</b>]
  315. [<b>-merrors-to-file</b> <var>&lt;filename&gt;</var>|<b>-me</b> <var>&lt;filename&gt;</var>]
  316. <em>Target TIC6X options:</em>
  317. [<b>-march=<var>arch</var></b>] [<b>-mbig-endian</b>|<b>-mlittle-endian</b>]
  318. [<b>-mdsbt</b>|<b>-mno-dsbt</b>] [<b>-mpid=no</b>|<b>-mpid=near</b>|<b>-mpid=far</b>]
  319. [<b>-mpic</b>|<b>-mno-pic</b>]
  320. <em>Target TILE-Gx options:</em>
  321. [<b>-m32</b>|<b>-m64</b>][<b>-EB</b>][<b>-EL</b>]
  322. <em>Target Visium options:</em>
  323. [<b>-mtune=<var>arch</var></b>]
  324. <em>Target Xtensa options:</em>
  325. [<b>&ndash;[no-]text-section-literals</b>] [<b>&ndash;[no-]auto-litpools</b>]
  326. [<b>&ndash;[no-]absolute-literals</b>]
  327. [<b>&ndash;[no-]target-align</b>] [<b>&ndash;[no-]longcalls</b>]
  328. [<b>&ndash;[no-]transform</b>]
  329. [<b>&ndash;rename-section</b> <var>oldname</var>=<var>newname</var>]
  330. [<b>&ndash;[no-]trampolines</b>]
  331. [<b>&ndash;abi-windowed</b>|<b>&ndash;abi-call0</b>]
  332. <em>Target Z80 options:</em>
  333. [<b>-march=<var>CPU</var><var>[-EXT]</var><var>[+EXT]</var></b>]
  334. [<b>-local-prefix=</b><var>PREFIX</var>]
  335. [<b>-colonless</b>]
  336. [<b>-sdcc</b>]
  337. [<b>-fp-s=</b><var>FORMAT</var>]
  338. [<b>-fp-d=</b><var>FORMAT</var>]
  339. </pre></div>
  340. <dl compact="compact">
  341. <dt><code>@<var>file</var></code></dt>
  342. <dd><p>Read command-line options from <var>file</var>. The options read are
  343. inserted in place of the original @<var>file</var> option. If <var>file</var>
  344. does not exist, or cannot be read, then the option will be treated
  345. literally, and not removed.
  346. </p>
  347. <p>Options in <var>file</var> are separated by whitespace. A whitespace
  348. character may be included in an option by surrounding the entire
  349. option in either single or double quotes. Any character (including a
  350. backslash) may be included by prefixing the character to be included
  351. with a backslash. The <var>file</var> may itself contain additional
  352. @<var>file</var> options; any such options will be processed recursively.
  353. </p>
  354. </dd>
  355. <dt><code>-a[cdghlmns]</code></dt>
  356. <dd><p>Turn on listings, in any of a variety of ways:
  357. </p>
  358. <dl compact="compact">
  359. <dt><code>-ac</code></dt>
  360. <dd><p>omit false conditionals
  361. </p>
  362. </dd>
  363. <dt><code>-ad</code></dt>
  364. <dd><p>omit debugging directives
  365. </p>
  366. </dd>
  367. <dt><code>-ag</code></dt>
  368. <dd><p>include general information, like as version and options passed
  369. </p>
  370. </dd>
  371. <dt><code>-ah</code></dt>
  372. <dd><p>include high-level source
  373. </p>
  374. </dd>
  375. <dt><code>-al</code></dt>
  376. <dd><p>include assembly
  377. </p>
  378. </dd>
  379. <dt><code>-am</code></dt>
  380. <dd><p>include macro expansions
  381. </p>
  382. </dd>
  383. <dt><code>-an</code></dt>
  384. <dd><p>omit forms processing
  385. </p>
  386. </dd>
  387. <dt><code>-as</code></dt>
  388. <dd><p>include symbols
  389. </p>
  390. </dd>
  391. <dt><code>=file</code></dt>
  392. <dd><p>set the name of the listing file
  393. </p></dd>
  394. </dl>
  395. <p>You may combine these options; for example, use &lsquo;<samp>-aln</samp>&rsquo; for assembly
  396. listing without forms processing. The &lsquo;<samp>=file</samp>&rsquo; option, if used, must be
  397. the last one. By itself, &lsquo;<samp>-a</samp>&rsquo; defaults to &lsquo;<samp>-ahls</samp>&rsquo;.
  398. </p>
  399. </dd>
  400. <dt><code>--alternate</code></dt>
  401. <dd><p>Begin in alternate macro mode.
  402. See <a href="Altmacro.html#Altmacro"><code>.altmacro</code></a>.
  403. </p>
  404. </dd>
  405. <dt><code>--compress-debug-sections</code></dt>
  406. <dd><p>Compress DWARF debug sections using zlib with SHF_COMPRESSED from the
  407. ELF ABI. The resulting object file may not be compatible with older
  408. linkers and object file utilities. Note if compression would make a
  409. given section <em>larger</em> then it is not compressed.
  410. </p>
  411. <a name="index-_002d_002dcompress_002ddebug_002dsections_003d-option"></a>
  412. </dd>
  413. <dt><code>--compress-debug-sections=none</code></dt>
  414. <dt><code>--compress-debug-sections=zlib</code></dt>
  415. <dt><code>--compress-debug-sections=zlib-gnu</code></dt>
  416. <dt><code>--compress-debug-sections=zlib-gabi</code></dt>
  417. <dd><p>These options control how DWARF debug sections are compressed.
  418. <samp>--compress-debug-sections=none</samp> is equivalent to
  419. <samp>--nocompress-debug-sections</samp>.
  420. <samp>--compress-debug-sections=zlib</samp> and
  421. <samp>--compress-debug-sections=zlib-gabi</samp> are equivalent to
  422. <samp>--compress-debug-sections</samp>.
  423. <samp>--compress-debug-sections=zlib-gnu</samp> compresses DWARF debug
  424. sections using zlib. The debug sections are renamed to begin with
  425. &lsquo;<samp>.zdebug</samp>&rsquo;. Note if compression would make a given section
  426. <em>larger</em> then it is not compressed nor renamed.
  427. </p>
  428. </dd>
  429. <dt><code>--nocompress-debug-sections</code></dt>
  430. <dd><p>Do not compress DWARF debug sections. This is usually the default for all
  431. targets except the x86/x86_64, but a configure time option can be used to
  432. override this.
  433. </p>
  434. </dd>
  435. <dt><code>-D</code></dt>
  436. <dd><p>Ignored. This option is accepted for script compatibility with calls to
  437. other assemblers.
  438. </p>
  439. </dd>
  440. <dt><code>--debug-prefix-map <var>old</var>=<var>new</var></code></dt>
  441. <dd><p>When assembling files in directory <samp><var>old</var></samp>, record debugging
  442. information describing them as in <samp><var>new</var></samp> instead.
  443. </p>
  444. </dd>
  445. <dt><code>--defsym <var>sym</var>=<var>value</var></code></dt>
  446. <dd><p>Define the symbol <var>sym</var> to be <var>value</var> before assembling the input file.
  447. <var>value</var> must be an integer constant. As in C, a leading &lsquo;<samp>0x</samp>&rsquo;
  448. indicates a hexadecimal value, and a leading &lsquo;<samp>0</samp>&rsquo; indicates an octal
  449. value. The value of the symbol can be overridden inside a source file via the
  450. use of a <code>.set</code> pseudo-op.
  451. </p>
  452. </dd>
  453. <dt><code>-f</code></dt>
  454. <dd><p>&ldquo;fast&rdquo;&mdash;skip whitespace and comment preprocessing (assume source is
  455. compiler output).
  456. </p>
  457. </dd>
  458. <dt><code>-g</code></dt>
  459. <dt><code>--gen-debug</code></dt>
  460. <dd><p>Generate debugging information for each assembler source line using whichever
  461. debug format is preferred by the target. This currently means either STABS,
  462. ECOFF or DWARF2. When the debug format is DWARF then a <code>.debug_info</code> and
  463. <code>.debug_line</code> section is only emitted when the assembly file doesn&rsquo;t
  464. generate one itself.
  465. </p>
  466. </dd>
  467. <dt><code>--gstabs</code></dt>
  468. <dd><p>Generate stabs debugging information for each assembler line. This
  469. may help debugging assembler code, if the debugger can handle it.
  470. </p>
  471. </dd>
  472. <dt><code>--gstabs+</code></dt>
  473. <dd><p>Generate stabs debugging information for each assembler line, with GNU
  474. extensions that probably only gdb can handle, and that could make other
  475. debuggers crash or refuse to read your program. This
  476. may help debugging assembler code. Currently the only GNU extension is
  477. the location of the current working directory at assembling time.
  478. </p>
  479. </dd>
  480. <dt><code>--gdwarf-2</code></dt>
  481. <dd><p>Generate DWARF2 debugging information for each assembler line. This
  482. may help debugging assembler code, if the debugger can handle it. Note&mdash;this
  483. option is only supported by some targets, not all of them.
  484. </p>
  485. </dd>
  486. <dt><code>--gdwarf-3</code></dt>
  487. <dd><p>This option is the same as the <samp>--gdwarf-2</samp> option, except that it
  488. allows for the possibility of the generation of extra debug information as per
  489. version 3 of the DWARF specification. Note - enabling this option does not
  490. guarantee the generation of any extra infortmation, the choice to do so is on a
  491. per target basis.
  492. </p>
  493. </dd>
  494. <dt><code>--gdwarf-4</code></dt>
  495. <dd><p>This option is the same as the <samp>--gdwarf-2</samp> option, except that it
  496. allows for the possibility of the generation of extra debug information as per
  497. version 4 of the DWARF specification. Note - enabling this option does not
  498. guarantee the generation of any extra infortmation, the choice to do so is on a
  499. per target basis.
  500. </p>
  501. </dd>
  502. <dt><code>--gdwarf-5</code></dt>
  503. <dd><p>This option is the same as the <samp>--gdwarf-2</samp> option, except that it
  504. allows for the possibility of the generation of extra debug information as per
  505. version 5 of the DWARF specification. Note - enabling this option does not
  506. guarantee the generation of any extra infortmation, the choice to do so is on a
  507. per target basis.
  508. </p>
  509. </dd>
  510. <dt><code>--gdwarf-sections</code></dt>
  511. <dd><p>Instead of creating a .debug_line section, create a series of
  512. .debug_line.<var>foo</var> sections where <var>foo</var> is the name of the
  513. corresponding code section. For example a code section called <var>.text.func</var>
  514. will have its dwarf line number information placed into a section called
  515. <var>.debug_line.text.func</var>. If the code section is just called <var>.text</var>
  516. then debug line section will still be called just <var>.debug_line</var> without any
  517. suffix.
  518. </p>
  519. </dd>
  520. <dt><code>--gdwarf-cie-version=<var>version</var></code></dt>
  521. <dd><p>Control which version of DWARF Common Information Entries (CIEs) are produced.
  522. When this flag is not specificed the default is version 1, though some targets
  523. can modify this default. Other possible values for <var>version</var> are 3 or 4.
  524. </p>
  525. </dd>
  526. <dt><code>--size-check=error</code></dt>
  527. <dt><code>--size-check=warning</code></dt>
  528. <dd><p>Issue an error or warning for invalid ELF .size directive.
  529. </p>
  530. </dd>
  531. <dt><code>--elf-stt-common=no</code></dt>
  532. <dt><code>--elf-stt-common=yes</code></dt>
  533. <dd><p>These options control whether the ELF assembler should generate common
  534. symbols with the <code>STT_COMMON</code> type. The default can be controlled
  535. by a configure option <samp>--enable-elf-stt-common</samp>.
  536. </p>
  537. </dd>
  538. <dt><code>--generate-missing-build-notes=yes</code></dt>
  539. <dt><code>--generate-missing-build-notes=no</code></dt>
  540. <dd><p>These options control whether the ELF assembler should generate GNU Build
  541. attribute notes if none are present in the input sources.
  542. The default can be controlled by the <samp>--enable-generate-build-notes</samp>
  543. configure option.
  544. </p>
  545. </dd>
  546. <dt><code>--help</code></dt>
  547. <dd><p>Print a summary of the command-line options and exit.
  548. </p>
  549. </dd>
  550. <dt><code>--target-help</code></dt>
  551. <dd><p>Print a summary of all target specific options and exit.
  552. </p>
  553. </dd>
  554. <dt><code>-I <var>dir</var></code></dt>
  555. <dd><p>Add directory <var>dir</var> to the search list for <code>.include</code> directives.
  556. </p>
  557. </dd>
  558. <dt><code>-J</code></dt>
  559. <dd><p>Don&rsquo;t warn about signed overflow.
  560. </p>
  561. </dd>
  562. <dt><code>-K</code></dt>
  563. <dd><p>Issue warnings when difference tables altered for long displacements.
  564. </p>
  565. </dd>
  566. <dt><code>-L</code></dt>
  567. <dt><code>--keep-locals</code></dt>
  568. <dd><p>Keep (in the symbol table) local symbols. These symbols start with
  569. system-specific local label prefixes, typically &lsquo;<samp>.L</samp>&rsquo; for ELF systems
  570. or &lsquo;<samp>L</samp>&rsquo; for traditional a.out systems.
  571. See <a href="Symbol-Names.html#Symbol-Names">Symbol Names</a>.
  572. </p>
  573. </dd>
  574. <dt><code>--listing-lhs-width=<var>number</var></code></dt>
  575. <dd><p>Set the maximum width, in words, of the output data column for an assembler
  576. listing to <var>number</var>.
  577. </p>
  578. </dd>
  579. <dt><code>--listing-lhs-width2=<var>number</var></code></dt>
  580. <dd><p>Set the maximum width, in words, of the output data column for continuation
  581. lines in an assembler listing to <var>number</var>.
  582. </p>
  583. </dd>
  584. <dt><code>--listing-rhs-width=<var>number</var></code></dt>
  585. <dd><p>Set the maximum width of an input source line, as displayed in a listing, to
  586. <var>number</var> bytes.
  587. </p>
  588. </dd>
  589. <dt><code>--listing-cont-lines=<var>number</var></code></dt>
  590. <dd><p>Set the maximum number of lines printed in a listing for a single line of input
  591. to <var>number</var> + 1.
  592. </p>
  593. </dd>
  594. <dt><code>--no-pad-sections</code></dt>
  595. <dd><p>Stop the assembler for padding the ends of output sections to the alignment
  596. of that section. The default is to pad the sections, but this can waste space
  597. which might be needed on targets which have tight memory constraints.
  598. </p>
  599. </dd>
  600. <dt><code>-o <var>objfile</var></code></dt>
  601. <dd><p>Name the object-file output from <code>as</code> <var>objfile</var>.
  602. </p>
  603. </dd>
  604. <dt><code>-R</code></dt>
  605. <dd><p>Fold the data section into the text section.
  606. </p>
  607. </dd>
  608. <dt><code>--hash-size=<var>number</var></code></dt>
  609. <dd><p>Set the default size of GAS&rsquo;s hash tables to a prime number close to
  610. <var>number</var>. Increasing this value can reduce the length of time it takes the
  611. assembler to perform its tasks, at the expense of increasing the assembler&rsquo;s
  612. memory requirements. Similarly reducing this value can reduce the memory
  613. requirements at the expense of speed.
  614. </p>
  615. </dd>
  616. <dt><code>--reduce-memory-overheads</code></dt>
  617. <dd><p>This option reduces GAS&rsquo;s memory requirements, at the expense of making the
  618. assembly processes slower. Currently this switch is a synonym for
  619. &lsquo;<samp>--hash-size=4051</samp>&rsquo;, but in the future it may have other effects as well.
  620. </p>
  621. </dd>
  622. <dt><code>--sectname-subst</code></dt>
  623. <dd><p>Honor substitution sequences in section names.
  624. See <a href="Section.html#Section-Name-Substitutions"><code>.section <var>name</var></code></a>.
  625. </p>
  626. </dd>
  627. <dt><code>--statistics</code></dt>
  628. <dd><p>Print the maximum space (in bytes) and total time (in seconds) used by
  629. assembly.
  630. </p>
  631. </dd>
  632. <dt><code>--strip-local-absolute</code></dt>
  633. <dd><p>Remove local absolute symbols from the outgoing symbol table.
  634. </p>
  635. </dd>
  636. <dt><code>-v</code></dt>
  637. <dt><code>-version</code></dt>
  638. <dd><p>Print the <code>as</code> version.
  639. </p>
  640. </dd>
  641. <dt><code>--version</code></dt>
  642. <dd><p>Print the <code>as</code> version and exit.
  643. </p>
  644. </dd>
  645. <dt><code>-W</code></dt>
  646. <dt><code>--no-warn</code></dt>
  647. <dd><p>Suppress warning messages.
  648. </p>
  649. </dd>
  650. <dt><code>--fatal-warnings</code></dt>
  651. <dd><p>Treat warnings as errors.
  652. </p>
  653. </dd>
  654. <dt><code>--warn</code></dt>
  655. <dd><p>Don&rsquo;t suppress warning messages or treat them as errors.
  656. </p>
  657. </dd>
  658. <dt><code>-w</code></dt>
  659. <dd><p>Ignored.
  660. </p>
  661. </dd>
  662. <dt><code>-x</code></dt>
  663. <dd><p>Ignored.
  664. </p>
  665. </dd>
  666. <dt><code>-Z</code></dt>
  667. <dd><p>Generate an object file even after errors.
  668. </p>
  669. </dd>
  670. <dt><code>-- | <var>files</var> &hellip;</code></dt>
  671. <dd><p>Standard input, or source files to assemble.
  672. </p>
  673. </dd>
  674. </dl>
  675. <p>See <a href="AArch64-Options.html#AArch64-Options">AArch64 Options</a>, for the options available when as is configured
  676. for the 64-bit mode of the ARM Architecture (AArch64).
  677. </p>
  678. <p>See <a href="Alpha-Options.html#Alpha-Options">Alpha Options</a>, for the options available when as is configured
  679. for an Alpha processor.
  680. </p>
  681. <p>The following options are available when as is configured for an ARC
  682. processor.
  683. </p>
  684. <dl compact="compact">
  685. <dt><code>-mcpu=<var>cpu</var></code></dt>
  686. <dd><p>This option selects the core processor variant.
  687. </p></dd>
  688. <dt><code>-EB | -EL</code></dt>
  689. <dd><p>Select either big-endian (-EB) or little-endian (-EL) output.
  690. </p></dd>
  691. <dt><code>-mcode-density</code></dt>
  692. <dd><p>Enable Code Density extenssion instructions.
  693. </p></dd>
  694. </dl>
  695. <p>The following options are available when as is configured for the ARM
  696. processor family.
  697. </p>
  698. <dl compact="compact">
  699. <dt><code>-mcpu=<var>processor</var>[+<var>extension</var>&hellip;]</code></dt>
  700. <dd><p>Specify which ARM processor variant is the target.
  701. </p></dd>
  702. <dt><code>-march=<var>architecture</var>[+<var>extension</var>&hellip;]</code></dt>
  703. <dd><p>Specify which ARM architecture variant is used by the target.
  704. </p></dd>
  705. <dt><code>-mfpu=<var>floating-point-format</var></code></dt>
  706. <dd><p>Select which Floating Point architecture is the target.
  707. </p></dd>
  708. <dt><code>-mfloat-abi=<var>abi</var></code></dt>
  709. <dd><p>Select which floating point ABI is in use.
  710. </p></dd>
  711. <dt><code>-mthumb</code></dt>
  712. <dd><p>Enable Thumb only instruction decoding.
  713. </p></dd>
  714. <dt><code>-mapcs-32 | -mapcs-26 | -mapcs-float | -mapcs-reentrant</code></dt>
  715. <dd><p>Select which procedure calling convention is in use.
  716. </p></dd>
  717. <dt><code>-EB | -EL</code></dt>
  718. <dd><p>Select either big-endian (-EB) or little-endian (-EL) output.
  719. </p></dd>
  720. <dt><code>-mthumb-interwork</code></dt>
  721. <dd><p>Specify that the code has been generated with interworking between Thumb and
  722. ARM code in mind.
  723. </p></dd>
  724. <dt><code>-mccs</code></dt>
  725. <dd><p>Turns on CodeComposer Studio assembly syntax compatibility mode.
  726. </p></dd>
  727. <dt><code>-k</code></dt>
  728. <dd><p>Specify that PIC code has been generated.
  729. </p></dd>
  730. </dl>
  731. <p>See <a href="Blackfin-Options.html#Blackfin-Options">Blackfin Options</a>, for the options available when as is
  732. configured for the Blackfin processor family.
  733. </p>
  734. <p>See <a href="BPF-Options.html#BPF-Options">BPF Options</a>, for the options available when as is
  735. configured for the Linux kernel BPF processor family.
  736. </p>
  737. <p>See the info pages for documentation of the CRIS-specific options.
  738. </p>
  739. <p>See <a href="C_002dSKY-Options.html#C_002dSKY-Options">C-SKY Options</a>, for the options available when as is
  740. configured for the C-SKY processor family.
  741. </p>
  742. <p>The following options are available when as is configured for
  743. a D10V processor.
  744. </p><dl compact="compact">
  745. <dd><a name="index-D10V-optimization"></a>
  746. <a name="index-optimization_002c-D10V"></a>
  747. </dd>
  748. <dt><code>-O</code></dt>
  749. <dd><p>Optimize output by parallelizing instructions.
  750. </p></dd>
  751. </dl>
  752. <p>The following options are available when as is configured for a D30V
  753. processor.
  754. </p><dl compact="compact">
  755. <dd><a name="index-D30V-optimization"></a>
  756. <a name="index-optimization_002c-D30V"></a>
  757. </dd>
  758. <dt><code>-O</code></dt>
  759. <dd><p>Optimize output by parallelizing instructions.
  760. </p>
  761. <a name="index-D30V-nops"></a>
  762. </dd>
  763. <dt><code>-n</code></dt>
  764. <dd><p>Warn when nops are generated.
  765. </p>
  766. <a name="index-D30V-nops-after-32_002dbit-multiply"></a>
  767. </dd>
  768. <dt><code>-N</code></dt>
  769. <dd><p>Warn when a nop after a 32-bit multiply instruction is generated.
  770. </p></dd>
  771. </dl>
  772. <p>The following options are available when as is configured for the
  773. Adapteva EPIPHANY series.
  774. </p>
  775. <p>See <a href="Epiphany-Options.html#Epiphany-Options">Epiphany Options</a>, for the options available when as is
  776. configured for an Epiphany processor.
  777. </p>
  778. <p>See <a href="i386_002dOptions.html#i386_002dOptions">i386-Options</a>, for the options available when as is
  779. configured for an i386 processor.
  780. </p>
  781. <p>The following options are available when as is configured for the
  782. Ubicom IP2K series.
  783. </p>
  784. <dl compact="compact">
  785. <dt><code>-mip2022ext</code></dt>
  786. <dd><p>Specifies that the extended IP2022 instructions are allowed.
  787. </p>
  788. </dd>
  789. <dt><code>-mip2022</code></dt>
  790. <dd><p>Restores the default behaviour, which restricts the permitted instructions to
  791. just the basic IP2022 ones.
  792. </p>
  793. </dd>
  794. </dl>
  795. <p>The following options are available when as is configured for the
  796. Renesas M32C and M16C processors.
  797. </p>
  798. <dl compact="compact">
  799. <dt><code>-m32c</code></dt>
  800. <dd><p>Assemble M32C instructions.
  801. </p>
  802. </dd>
  803. <dt><code>-m16c</code></dt>
  804. <dd><p>Assemble M16C instructions (the default).
  805. </p>
  806. </dd>
  807. <dt><code>-relax</code></dt>
  808. <dd><p>Enable support for link-time relaxations.
  809. </p>
  810. </dd>
  811. <dt><code>-h-tick-hex</code></dt>
  812. <dd><p>Support H&rsquo;00 style hex constants in addition to 0x00 style.
  813. </p>
  814. </dd>
  815. </dl>
  816. <p>The following options are available when as is configured for the
  817. Renesas M32R (formerly Mitsubishi M32R) series.
  818. </p>
  819. <dl compact="compact">
  820. <dt><code>--m32rx</code></dt>
  821. <dd><p>Specify which processor in the M32R family is the target. The default
  822. is normally the M32R, but this option changes it to the M32RX.
  823. </p>
  824. </dd>
  825. <dt><code>--warn-explicit-parallel-conflicts or --Wp</code></dt>
  826. <dd><p>Produce warning messages when questionable parallel constructs are
  827. encountered.
  828. </p>
  829. </dd>
  830. <dt><code>--no-warn-explicit-parallel-conflicts or --Wnp</code></dt>
  831. <dd><p>Do not produce warning messages when questionable parallel constructs are
  832. encountered.
  833. </p>
  834. </dd>
  835. </dl>
  836. <p>The following options are available when as is configured for the
  837. Motorola 68000 series.
  838. </p>
  839. <dl compact="compact">
  840. <dt><code>-l</code></dt>
  841. <dd><p>Shorten references to undefined symbols, to one word instead of two.
  842. </p>
  843. </dd>
  844. <dt><code>-m68000 | -m68008 | -m68010 | -m68020 | -m68030</code></dt>
  845. <dt><code>| -m68040 | -m68060 | -m68302 | -m68331 | -m68332</code></dt>
  846. <dt><code>| -m68333 | -m68340 | -mcpu32 | -m5200</code></dt>
  847. <dd><p>Specify what processor in the 68000 family is the target. The default
  848. is normally the 68020, but this can be changed at configuration time.
  849. </p>
  850. </dd>
  851. <dt><code>-m68881 | -m68882 | -mno-68881 | -mno-68882</code></dt>
  852. <dd><p>The target machine does (or does not) have a floating-point coprocessor.
  853. The default is to assume a coprocessor for 68020, 68030, and cpu32. Although
  854. the basic 68000 is not compatible with the 68881, a combination of the
  855. two can be specified, since it&rsquo;s possible to do emulation of the
  856. coprocessor instructions with the main processor.
  857. </p>
  858. </dd>
  859. <dt><code>-m68851 | -mno-68851</code></dt>
  860. <dd><p>The target machine does (or does not) have a memory-management
  861. unit coprocessor. The default is to assume an MMU for 68020 and up.
  862. </p>
  863. </dd>
  864. </dl>
  865. <p>See <a href="Nios-II-Options.html#Nios-II-Options">Nios II Options</a>, for the options available when as is configured
  866. for an Altera Nios II processor.
  867. </p>
  868. <p>For details about the PDP-11 machine dependent features options,
  869. see <a href="PDP_002d11_002dOptions.html#PDP_002d11_002dOptions">PDP-11-Options</a>.
  870. </p>
  871. <dl compact="compact">
  872. <dt><code>-mpic | -mno-pic</code></dt>
  873. <dd><p>Generate position-independent (or position-dependent) code. The
  874. default is <samp>-mpic</samp>.
  875. </p>
  876. </dd>
  877. <dt><code>-mall</code></dt>
  878. <dt><code>-mall-extensions</code></dt>
  879. <dd><p>Enable all instruction set extensions. This is the default.
  880. </p>
  881. </dd>
  882. <dt><code>-mno-extensions</code></dt>
  883. <dd><p>Disable all instruction set extensions.
  884. </p>
  885. </dd>
  886. <dt><code>-m<var>extension</var> | -mno-<var>extension</var></code></dt>
  887. <dd><p>Enable (or disable) a particular instruction set extension.
  888. </p>
  889. </dd>
  890. <dt><code>-m<var>cpu</var></code></dt>
  891. <dd><p>Enable the instruction set extensions supported by a particular CPU, and
  892. disable all other extensions.
  893. </p>
  894. </dd>
  895. <dt><code>-m<var>machine</var></code></dt>
  896. <dd><p>Enable the instruction set extensions supported by a particular machine
  897. model, and disable all other extensions.
  898. </p></dd>
  899. </dl>
  900. <p>The following options are available when as is configured for
  901. a picoJava processor.
  902. </p>
  903. <dl compact="compact">
  904. <dd>
  905. <a name="index-PJ-endianness"></a>
  906. <a name="index-endianness_002c-PJ"></a>
  907. <a name="index-big-endian-output_002c-PJ"></a>
  908. </dd>
  909. <dt><code>-mb</code></dt>
  910. <dd><p>Generate &ldquo;big endian&rdquo; format output.
  911. </p>
  912. <a name="index-little-endian-output_002c-PJ"></a>
  913. </dd>
  914. <dt><code>-ml</code></dt>
  915. <dd><p>Generate &ldquo;little endian&rdquo; format output.
  916. </p>
  917. </dd>
  918. </dl>
  919. <p>See <a href="PRU-Options.html#PRU-Options">PRU Options</a>, for the options available when as is configured
  920. for a PRU processor.
  921. </p>
  922. <p>The following options are available when as is configured for the
  923. Motorola 68HC11 or 68HC12 series.
  924. </p>
  925. <dl compact="compact">
  926. <dt><code>-m68hc11 | -m68hc12 | -m68hcs12 | -mm9s12x | -mm9s12xg</code></dt>
  927. <dd><p>Specify what processor is the target. The default is
  928. defined by the configuration option when building the assembler.
  929. </p>
  930. </dd>
  931. <dt><code>--xgate-ramoffset</code></dt>
  932. <dd><p>Instruct the linker to offset RAM addresses from S12X address space into
  933. XGATE address space.
  934. </p>
  935. </dd>
  936. <dt><code>-mshort</code></dt>
  937. <dd><p>Specify to use the 16-bit integer ABI.
  938. </p>
  939. </dd>
  940. <dt><code>-mlong</code></dt>
  941. <dd><p>Specify to use the 32-bit integer ABI.
  942. </p>
  943. </dd>
  944. <dt><code>-mshort-double</code></dt>
  945. <dd><p>Specify to use the 32-bit double ABI.
  946. </p>
  947. </dd>
  948. <dt><code>-mlong-double</code></dt>
  949. <dd><p>Specify to use the 64-bit double ABI.
  950. </p>
  951. </dd>
  952. <dt><code>--force-long-branches</code></dt>
  953. <dd><p>Relative branches are turned into absolute ones. This concerns
  954. conditional branches, unconditional branches and branches to a
  955. sub routine.
  956. </p>
  957. </dd>
  958. <dt><code>-S | --short-branches</code></dt>
  959. <dd><p>Do not turn relative branches into absolute ones
  960. when the offset is out of range.
  961. </p>
  962. </dd>
  963. <dt><code>--strict-direct-mode</code></dt>
  964. <dd><p>Do not turn the direct addressing mode into extended addressing mode
  965. when the instruction does not support direct addressing mode.
  966. </p>
  967. </dd>
  968. <dt><code>--print-insn-syntax</code></dt>
  969. <dd><p>Print the syntax of instruction in case of error.
  970. </p>
  971. </dd>
  972. <dt><code>--print-opcodes</code></dt>
  973. <dd><p>Print the list of instructions with syntax and then exit.
  974. </p>
  975. </dd>
  976. <dt><code>--generate-example</code></dt>
  977. <dd><p>Print an example of instruction for each possible instruction and then exit.
  978. This option is only useful for testing <code>as</code>.
  979. </p>
  980. </dd>
  981. </dl>
  982. <p>The following options are available when <code>as</code> is configured
  983. for the SPARC architecture:
  984. </p>
  985. <dl compact="compact">
  986. <dt><code>-Av6 | -Av7 | -Av8 | -Asparclet | -Asparclite</code></dt>
  987. <dt><code>-Av8plus | -Av8plusa | -Av9 | -Av9a</code></dt>
  988. <dd><p>Explicitly select a variant of the SPARC architecture.
  989. </p>
  990. <p>&lsquo;<samp>-Av8plus</samp>&rsquo; and &lsquo;<samp>-Av8plusa</samp>&rsquo; select a 32 bit environment.
  991. &lsquo;<samp>-Av9</samp>&rsquo; and &lsquo;<samp>-Av9a</samp>&rsquo; select a 64 bit environment.
  992. </p>
  993. <p>&lsquo;<samp>-Av8plusa</samp>&rsquo; and &lsquo;<samp>-Av9a</samp>&rsquo; enable the SPARC V9 instruction set with
  994. UltraSPARC extensions.
  995. </p>
  996. </dd>
  997. <dt><code>-xarch=v8plus | -xarch=v8plusa</code></dt>
  998. <dd><p>For compatibility with the Solaris v9 assembler. These options are
  999. equivalent to -Av8plus and -Av8plusa, respectively.
  1000. </p>
  1001. </dd>
  1002. <dt><code>-bump</code></dt>
  1003. <dd><p>Warn when the assembler switches to another architecture.
  1004. </p></dd>
  1005. </dl>
  1006. <p>The following options are available when as is configured for the &rsquo;c54x
  1007. architecture.
  1008. </p>
  1009. <dl compact="compact">
  1010. <dt><code>-mfar-mode</code></dt>
  1011. <dd><p>Enable extended addressing mode. All addresses and relocations will assume
  1012. extended addressing (usually 23 bits).
  1013. </p></dd>
  1014. <dt><code>-mcpu=<var>CPU_VERSION</var></code></dt>
  1015. <dd><p>Sets the CPU version being compiled for.
  1016. </p></dd>
  1017. <dt><code>-merrors-to-file <var>FILENAME</var></code></dt>
  1018. <dd><p>Redirect error output to a file, for broken systems which don&rsquo;t support such
  1019. behaviour in the shell.
  1020. </p></dd>
  1021. </dl>
  1022. <p>The following options are available when as is configured for
  1023. a MIPS processor.
  1024. </p>
  1025. <dl compact="compact">
  1026. <dt><code>-G <var>num</var></code></dt>
  1027. <dd><p>This option sets the largest size of an object that can be referenced
  1028. implicitly with the <code>gp</code> register. It is only accepted for targets that
  1029. use ECOFF format, such as a DECstation running Ultrix. The default value is 8.
  1030. </p>
  1031. <a name="index-MIPS-endianness"></a>
  1032. <a name="index-endianness_002c-MIPS"></a>
  1033. <a name="index-big-endian-output_002c-MIPS"></a>
  1034. </dd>
  1035. <dt><code>-EB</code></dt>
  1036. <dd><p>Generate &ldquo;big endian&rdquo; format output.
  1037. </p>
  1038. <a name="index-little-endian-output_002c-MIPS"></a>
  1039. </dd>
  1040. <dt><code>-EL</code></dt>
  1041. <dd><p>Generate &ldquo;little endian&rdquo; format output.
  1042. </p>
  1043. <a name="index-MIPS-ISA"></a>
  1044. </dd>
  1045. <dt><code>-mips1</code></dt>
  1046. <dt><code>-mips2</code></dt>
  1047. <dt><code>-mips3</code></dt>
  1048. <dt><code>-mips4</code></dt>
  1049. <dt><code>-mips5</code></dt>
  1050. <dt><code>-mips32</code></dt>
  1051. <dt><code>-mips32r2</code></dt>
  1052. <dt><code>-mips32r3</code></dt>
  1053. <dt><code>-mips32r5</code></dt>
  1054. <dt><code>-mips32r6</code></dt>
  1055. <dt><code>-mips64</code></dt>
  1056. <dt><code>-mips64r2</code></dt>
  1057. <dt><code>-mips64r3</code></dt>
  1058. <dt><code>-mips64r5</code></dt>
  1059. <dt><code>-mips64r6</code></dt>
  1060. <dd><p>Generate code for a particular MIPS Instruction Set Architecture level.
  1061. &lsquo;<samp>-mips1</samp>&rsquo; is an alias for &lsquo;<samp>-march=r3000</samp>&rsquo;, &lsquo;<samp>-mips2</samp>&rsquo; is an
  1062. alias for &lsquo;<samp>-march=r6000</samp>&rsquo;, &lsquo;<samp>-mips3</samp>&rsquo; is an alias for
  1063. &lsquo;<samp>-march=r4000</samp>&rsquo; and &lsquo;<samp>-mips4</samp>&rsquo; is an alias for &lsquo;<samp>-march=r8000</samp>&rsquo;.
  1064. &lsquo;<samp>-mips5</samp>&rsquo;, &lsquo;<samp>-mips32</samp>&rsquo;, &lsquo;<samp>-mips32r2</samp>&rsquo;, &lsquo;<samp>-mips32r3</samp>&rsquo;,
  1065. &lsquo;<samp>-mips32r5</samp>&rsquo;, &lsquo;<samp>-mips32r6</samp>&rsquo;, &lsquo;<samp>-mips64</samp>&rsquo;, &lsquo;<samp>-mips64r2</samp>&rsquo;,
  1066. &lsquo;<samp>-mips64r3</samp>&rsquo;, &lsquo;<samp>-mips64r5</samp>&rsquo;, and &lsquo;<samp>-mips64r6</samp>&rsquo; correspond to generic
  1067. MIPS V, MIPS32, MIPS32 Release 2, MIPS32 Release 3, MIPS32 Release 5, MIPS32
  1068. Release 6, MIPS64, MIPS64 Release 2, MIPS64 Release 3, MIPS64 Release 5, and
  1069. MIPS64 Release 6 ISA processors, respectively.
  1070. </p>
  1071. </dd>
  1072. <dt><code>-march=<var>cpu</var></code></dt>
  1073. <dd><p>Generate code for a particular MIPS CPU.
  1074. </p>
  1075. </dd>
  1076. <dt><code>-mtune=<var>cpu</var></code></dt>
  1077. <dd><p>Schedule and tune for a particular MIPS CPU.
  1078. </p>
  1079. </dd>
  1080. <dt><code>-mfix7000</code></dt>
  1081. <dt><code>-mno-fix7000</code></dt>
  1082. <dd><p>Cause nops to be inserted if the read of the destination register
  1083. of an mfhi or mflo instruction occurs in the following two instructions.
  1084. </p>
  1085. </dd>
  1086. <dt><code>-mfix-rm7000</code></dt>
  1087. <dt><code>-mno-fix-rm7000</code></dt>
  1088. <dd><p>Cause nops to be inserted if a dmult or dmultu instruction is
  1089. followed by a load instruction.
  1090. </p>
  1091. </dd>
  1092. <dt><code>-mfix-r5900</code></dt>
  1093. <dt><code>-mno-fix-r5900</code></dt>
  1094. <dd><p>Do not attempt to schedule the preceding instruction into the delay slot
  1095. of a branch instruction placed at the end of a short loop of six
  1096. instructions or fewer and always schedule a <code>nop</code> instruction there
  1097. instead. The short loop bug under certain conditions causes loops to
  1098. execute only once or twice, due to a hardware bug in the R5900 chip.
  1099. </p>
  1100. </dd>
  1101. <dt><code>-mdebug</code></dt>
  1102. <dt><code>-no-mdebug</code></dt>
  1103. <dd><p>Cause stabs-style debugging output to go into an ECOFF-style .mdebug
  1104. section instead of the standard ELF .stabs sections.
  1105. </p>
  1106. </dd>
  1107. <dt><code>-mpdr</code></dt>
  1108. <dt><code>-mno-pdr</code></dt>
  1109. <dd><p>Control generation of <code>.pdr</code> sections.
  1110. </p>
  1111. </dd>
  1112. <dt><code>-mgp32</code></dt>
  1113. <dt><code>-mfp32</code></dt>
  1114. <dd><p>The register sizes are normally inferred from the ISA and ABI, but these
  1115. flags force a certain group of registers to be treated as 32 bits wide at
  1116. all times. &lsquo;<samp>-mgp32</samp>&rsquo; controls the size of general-purpose registers
  1117. and &lsquo;<samp>-mfp32</samp>&rsquo; controls the size of floating-point registers.
  1118. </p>
  1119. </dd>
  1120. <dt><code>-mgp64</code></dt>
  1121. <dt><code>-mfp64</code></dt>
  1122. <dd><p>The register sizes are normally inferred from the ISA and ABI, but these
  1123. flags force a certain group of registers to be treated as 64 bits wide at
  1124. all times. &lsquo;<samp>-mgp64</samp>&rsquo; controls the size of general-purpose registers
  1125. and &lsquo;<samp>-mfp64</samp>&rsquo; controls the size of floating-point registers.
  1126. </p>
  1127. </dd>
  1128. <dt><code>-mfpxx</code></dt>
  1129. <dd><p>The register sizes are normally inferred from the ISA and ABI, but using
  1130. this flag in combination with &lsquo;<samp>-mabi=32</samp>&rsquo; enables an ABI variant
  1131. which will operate correctly with floating-point registers which are
  1132. 32 or 64 bits wide.
  1133. </p>
  1134. </dd>
  1135. <dt><code>-modd-spreg</code></dt>
  1136. <dt><code>-mno-odd-spreg</code></dt>
  1137. <dd><p>Enable use of floating-point operations on odd-numbered single-precision
  1138. registers when supported by the ISA. &lsquo;<samp>-mfpxx</samp>&rsquo; implies
  1139. &lsquo;<samp>-mno-odd-spreg</samp>&rsquo;, otherwise the default is &lsquo;<samp>-modd-spreg</samp>&rsquo;.
  1140. </p>
  1141. </dd>
  1142. <dt><code>-mips16</code></dt>
  1143. <dt><code>-no-mips16</code></dt>
  1144. <dd><p>Generate code for the MIPS 16 processor. This is equivalent to putting
  1145. <code>.module mips16</code> at the start of the assembly file. &lsquo;<samp>-no-mips16</samp>&rsquo;
  1146. turns off this option.
  1147. </p>
  1148. </dd>
  1149. <dt><code>-mmips16e2</code></dt>
  1150. <dt><code>-mno-mips16e2</code></dt>
  1151. <dd><p>Enable the use of MIPS16e2 instructions in MIPS16 mode. This is equivalent
  1152. to putting <code>.module mips16e2</code> at the start of the assembly file.
  1153. &lsquo;<samp>-mno-mips16e2</samp>&rsquo; turns off this option.
  1154. </p>
  1155. </dd>
  1156. <dt><code>-mmicromips</code></dt>
  1157. <dt><code>-mno-micromips</code></dt>
  1158. <dd><p>Generate code for the microMIPS processor. This is equivalent to putting
  1159. <code>.module micromips</code> at the start of the assembly file.
  1160. &lsquo;<samp>-mno-micromips</samp>&rsquo; turns off this option. This is equivalent to putting
  1161. <code>.module nomicromips</code> at the start of the assembly file.
  1162. </p>
  1163. </dd>
  1164. <dt><code>-msmartmips</code></dt>
  1165. <dt><code>-mno-smartmips</code></dt>
  1166. <dd><p>Enables the SmartMIPS extension to the MIPS32 instruction set. This is
  1167. equivalent to putting <code>.module smartmips</code> at the start of the assembly
  1168. file. &lsquo;<samp>-mno-smartmips</samp>&rsquo; turns off this option.
  1169. </p>
  1170. </dd>
  1171. <dt><code>-mips3d</code></dt>
  1172. <dt><code>-no-mips3d</code></dt>
  1173. <dd><p>Generate code for the MIPS-3D Application Specific Extension.
  1174. This tells the assembler to accept MIPS-3D instructions.
  1175. &lsquo;<samp>-no-mips3d</samp>&rsquo; turns off this option.
  1176. </p>
  1177. </dd>
  1178. <dt><code>-mdmx</code></dt>
  1179. <dt><code>-no-mdmx</code></dt>
  1180. <dd><p>Generate code for the MDMX Application Specific Extension.
  1181. This tells the assembler to accept MDMX instructions.
  1182. &lsquo;<samp>-no-mdmx</samp>&rsquo; turns off this option.
  1183. </p>
  1184. </dd>
  1185. <dt><code>-mdsp</code></dt>
  1186. <dt><code>-mno-dsp</code></dt>
  1187. <dd><p>Generate code for the DSP Release 1 Application Specific Extension.
  1188. This tells the assembler to accept DSP Release 1 instructions.
  1189. &lsquo;<samp>-mno-dsp</samp>&rsquo; turns off this option.
  1190. </p>
  1191. </dd>
  1192. <dt><code>-mdspr2</code></dt>
  1193. <dt><code>-mno-dspr2</code></dt>
  1194. <dd><p>Generate code for the DSP Release 2 Application Specific Extension.
  1195. This option implies &lsquo;<samp>-mdsp</samp>&rsquo;.
  1196. This tells the assembler to accept DSP Release 2 instructions.
  1197. &lsquo;<samp>-mno-dspr2</samp>&rsquo; turns off this option.
  1198. </p>
  1199. </dd>
  1200. <dt><code>-mdspr3</code></dt>
  1201. <dt><code>-mno-dspr3</code></dt>
  1202. <dd><p>Generate code for the DSP Release 3 Application Specific Extension.
  1203. This option implies &lsquo;<samp>-mdsp</samp>&rsquo; and &lsquo;<samp>-mdspr2</samp>&rsquo;.
  1204. This tells the assembler to accept DSP Release 3 instructions.
  1205. &lsquo;<samp>-mno-dspr3</samp>&rsquo; turns off this option.
  1206. </p>
  1207. </dd>
  1208. <dt><code>-mmsa</code></dt>
  1209. <dt><code>-mno-msa</code></dt>
  1210. <dd><p>Generate code for the MIPS SIMD Architecture Extension.
  1211. This tells the assembler to accept MSA instructions.
  1212. &lsquo;<samp>-mno-msa</samp>&rsquo; turns off this option.
  1213. </p>
  1214. </dd>
  1215. <dt><code>-mxpa</code></dt>
  1216. <dt><code>-mno-xpa</code></dt>
  1217. <dd><p>Generate code for the MIPS eXtended Physical Address (XPA) Extension.
  1218. This tells the assembler to accept XPA instructions.
  1219. &lsquo;<samp>-mno-xpa</samp>&rsquo; turns off this option.
  1220. </p>
  1221. </dd>
  1222. <dt><code>-mmt</code></dt>
  1223. <dt><code>-mno-mt</code></dt>
  1224. <dd><p>Generate code for the MT Application Specific Extension.
  1225. This tells the assembler to accept MT instructions.
  1226. &lsquo;<samp>-mno-mt</samp>&rsquo; turns off this option.
  1227. </p>
  1228. </dd>
  1229. <dt><code>-mmcu</code></dt>
  1230. <dt><code>-mno-mcu</code></dt>
  1231. <dd><p>Generate code for the MCU Application Specific Extension.
  1232. This tells the assembler to accept MCU instructions.
  1233. &lsquo;<samp>-mno-mcu</samp>&rsquo; turns off this option.
  1234. </p>
  1235. </dd>
  1236. <dt><code>-mcrc</code></dt>
  1237. <dt><code>-mno-crc</code></dt>
  1238. <dd><p>Generate code for the MIPS cyclic redundancy check (CRC) Application
  1239. Specific Extension. This tells the assembler to accept CRC instructions.
  1240. &lsquo;<samp>-mno-crc</samp>&rsquo; turns off this option.
  1241. </p>
  1242. </dd>
  1243. <dt><code>-mginv</code></dt>
  1244. <dt><code>-mno-ginv</code></dt>
  1245. <dd><p>Generate code for the Global INValidate (GINV) Application Specific
  1246. Extension. This tells the assembler to accept GINV instructions.
  1247. &lsquo;<samp>-mno-ginv</samp>&rsquo; turns off this option.
  1248. </p>
  1249. </dd>
  1250. <dt><code>-mloongson-mmi</code></dt>
  1251. <dt><code>-mno-loongson-mmi</code></dt>
  1252. <dd><p>Generate code for the Loongson MultiMedia extensions Instructions (MMI)
  1253. Application Specific Extension. This tells the assembler to accept MMI
  1254. instructions.
  1255. &lsquo;<samp>-mno-loongson-mmi</samp>&rsquo; turns off this option.
  1256. </p>
  1257. </dd>
  1258. <dt><code>-mloongson-cam</code></dt>
  1259. <dt><code>-mno-loongson-cam</code></dt>
  1260. <dd><p>Generate code for the Loongson Content Address Memory (CAM) instructions.
  1261. This tells the assembler to accept Loongson CAM instructions.
  1262. &lsquo;<samp>-mno-loongson-cam</samp>&rsquo; turns off this option.
  1263. </p>
  1264. </dd>
  1265. <dt><code>-mloongson-ext</code></dt>
  1266. <dt><code>-mno-loongson-ext</code></dt>
  1267. <dd><p>Generate code for the Loongson EXTensions (EXT) instructions.
  1268. This tells the assembler to accept Loongson EXT instructions.
  1269. &lsquo;<samp>-mno-loongson-ext</samp>&rsquo; turns off this option.
  1270. </p>
  1271. </dd>
  1272. <dt><code>-mloongson-ext2</code></dt>
  1273. <dt><code>-mno-loongson-ext2</code></dt>
  1274. <dd><p>Generate code for the Loongson EXTensions R2 (EXT2) instructions.
  1275. This option implies &lsquo;<samp>-mloongson-ext</samp>&rsquo;.
  1276. This tells the assembler to accept Loongson EXT2 instructions.
  1277. &lsquo;<samp>-mno-loongson-ext2</samp>&rsquo; turns off this option.
  1278. </p>
  1279. </dd>
  1280. <dt><code>-minsn32</code></dt>
  1281. <dt><code>-mno-insn32</code></dt>
  1282. <dd><p>Only use 32-bit instruction encodings when generating code for the
  1283. microMIPS processor. This option inhibits the use of any 16-bit
  1284. instructions. This is equivalent to putting <code>.set insn32</code> at
  1285. the start of the assembly file. &lsquo;<samp>-mno-insn32</samp>&rsquo; turns off this
  1286. option. This is equivalent to putting <code>.set noinsn32</code> at the
  1287. start of the assembly file. By default &lsquo;<samp>-mno-insn32</samp>&rsquo; is
  1288. selected, allowing all instructions to be used.
  1289. </p>
  1290. </dd>
  1291. <dt><code>--construct-floats</code></dt>
  1292. <dt><code>--no-construct-floats</code></dt>
  1293. <dd><p>The &lsquo;<samp>--no-construct-floats</samp>&rsquo; option disables the construction of
  1294. double width floating point constants by loading the two halves of the
  1295. value into the two single width floating point registers that make up
  1296. the double width register. By default &lsquo;<samp>--construct-floats</samp>&rsquo; is
  1297. selected, allowing construction of these floating point constants.
  1298. </p>
  1299. </dd>
  1300. <dt><code>--relax-branch</code></dt>
  1301. <dt><code>--no-relax-branch</code></dt>
  1302. <dd><p>The &lsquo;<samp>--relax-branch</samp>&rsquo; option enables the relaxation of out-of-range
  1303. branches. By default &lsquo;<samp>--no-relax-branch</samp>&rsquo; is selected, causing any
  1304. out-of-range branches to produce an error.
  1305. </p>
  1306. </dd>
  1307. <dt><code>-mignore-branch-isa</code></dt>
  1308. <dt><code>-mno-ignore-branch-isa</code></dt>
  1309. <dd><p>Ignore branch checks for invalid transitions between ISA modes. The
  1310. semantics of branches does not provide for an ISA mode switch, so in
  1311. most cases the ISA mode a branch has been encoded for has to be the
  1312. same as the ISA mode of the branch&rsquo;s target label. Therefore GAS has
  1313. checks implemented that verify in branch assembly that the two ISA
  1314. modes match. &lsquo;<samp>-mignore-branch-isa</samp>&rsquo; disables these checks. By
  1315. default &lsquo;<samp>-mno-ignore-branch-isa</samp>&rsquo; is selected, causing any invalid
  1316. branch requiring a transition between ISA modes to produce an error.
  1317. </p>
  1318. </dd>
  1319. <dt><code>-mnan=<var>encoding</var></code></dt>
  1320. <dd><p>Select between the IEEE 754-2008 (<samp>-mnan=2008</samp>) or the legacy
  1321. (<samp>-mnan=legacy</samp>) NaN encoding format. The latter is the default.
  1322. </p>
  1323. <a name="index-emulation"></a>
  1324. </dd>
  1325. <dt><code>--emulation=<var>name</var></code></dt>
  1326. <dd><p>This option was formerly used to switch between ELF and ECOFF output
  1327. on targets like IRIX 5 that supported both. MIPS ECOFF support was
  1328. removed in GAS 2.24, so the option now serves little purpose.
  1329. It is retained for backwards compatibility.
  1330. </p>
  1331. <p>The available configuration names are: &lsquo;<samp>mipself</samp>&rsquo;, &lsquo;<samp>mipslelf</samp>&rsquo; and
  1332. &lsquo;<samp>mipsbelf</samp>&rsquo;. Choosing &lsquo;<samp>mipself</samp>&rsquo; now has no effect, since the output
  1333. is always ELF. &lsquo;<samp>mipslelf</samp>&rsquo; and &lsquo;<samp>mipsbelf</samp>&rsquo; select little- and
  1334. big-endian output respectively, but &lsquo;<samp>-EL</samp>&rsquo; and &lsquo;<samp>-EB</samp>&rsquo; are now the
  1335. preferred options instead.
  1336. </p>
  1337. </dd>
  1338. <dt><code>-nocpp</code></dt>
  1339. <dd><p><code>as</code> ignores this option. It is accepted for compatibility with
  1340. the native tools.
  1341. </p>
  1342. </dd>
  1343. <dt><code>--trap</code></dt>
  1344. <dt><code>--no-trap</code></dt>
  1345. <dt><code>--break</code></dt>
  1346. <dt><code>--no-break</code></dt>
  1347. <dd><p>Control how to deal with multiplication overflow and division by zero.
  1348. &lsquo;<samp>--trap</samp>&rsquo; or &lsquo;<samp>--no-break</samp>&rsquo; (which are synonyms) take a trap exception
  1349. (and only work for Instruction Set Architecture level 2 and higher);
  1350. &lsquo;<samp>--break</samp>&rsquo; or &lsquo;<samp>--no-trap</samp>&rsquo; (also synonyms, and the default) take a
  1351. break exception.
  1352. </p>
  1353. </dd>
  1354. <dt><code>-n</code></dt>
  1355. <dd><p>When this option is used, <code>as</code> will issue a warning every
  1356. time it generates a nop instruction from a macro.
  1357. </p></dd>
  1358. </dl>
  1359. <p>The following options are available when as is configured for
  1360. an MCore processor.
  1361. </p>
  1362. <dl compact="compact">
  1363. <dt><code>-jsri2bsr</code></dt>
  1364. <dt><code>-nojsri2bsr</code></dt>
  1365. <dd><p>Enable or disable the JSRI to BSR transformation. By default this is enabled.
  1366. The command-line option &lsquo;<samp>-nojsri2bsr</samp>&rsquo; can be used to disable it.
  1367. </p>
  1368. </dd>
  1369. <dt><code>-sifilter</code></dt>
  1370. <dt><code>-nosifilter</code></dt>
  1371. <dd><p>Enable or disable the silicon filter behaviour. By default this is disabled.
  1372. The default can be overridden by the &lsquo;<samp>-sifilter</samp>&rsquo; command-line option.
  1373. </p>
  1374. </dd>
  1375. <dt><code>-relax</code></dt>
  1376. <dd><p>Alter jump instructions for long displacements.
  1377. </p>
  1378. </dd>
  1379. <dt><code>-mcpu=[210|340]</code></dt>
  1380. <dd><p>Select the cpu type on the target hardware. This controls which instructions
  1381. can be assembled.
  1382. </p>
  1383. </dd>
  1384. <dt><code>-EB</code></dt>
  1385. <dd><p>Assemble for a big endian target.
  1386. </p>
  1387. </dd>
  1388. <dt><code>-EL</code></dt>
  1389. <dd><p>Assemble for a little endian target.
  1390. </p>
  1391. </dd>
  1392. </dl>
  1393. <p>See <a href="Meta-Options.html#Meta-Options">Meta Options</a>, for the options available when as is configured
  1394. for a Meta processor.
  1395. </p>
  1396. <p>See the info pages for documentation of the MMIX-specific options.
  1397. </p>
  1398. <p>See <a href="NDS32-Options.html#NDS32-Options">NDS32 Options</a>, for the options available when as is configured
  1399. for a NDS32 processor.
  1400. </p>
  1401. <p>See <a href="PowerPC_002dOpts.html#PowerPC_002dOpts">PowerPC-Opts</a>, for the options available when as is configured
  1402. for a PowerPC processor.
  1403. </p>
  1404. <p>See <a href="RISC_002dV_002dOptions.html#RISC_002dV_002dOptions">RISC-V-Options</a>, for the options available when as is configured
  1405. for a RISC-V processor.
  1406. </p>
  1407. <p>See the info pages for documentation of the RX-specific options.
  1408. </p>
  1409. <p>The following options are available when as is configured for the s390
  1410. processor family.
  1411. </p>
  1412. <dl compact="compact">
  1413. <dt><code>-m31</code></dt>
  1414. <dt><code>-m64</code></dt>
  1415. <dd><p>Select the word size, either 31/32 bits or 64 bits.
  1416. </p></dd>
  1417. <dt><code>-mesa</code></dt>
  1418. <dt><code>-mzarch</code></dt>
  1419. <dd><p>Select the architecture mode, either the Enterprise System
  1420. Architecture (esa) or the z/Architecture mode (zarch).
  1421. </p></dd>
  1422. <dt><code>-march=<var>processor</var></code></dt>
  1423. <dd><p>Specify which s390 processor variant is the target, &lsquo;<samp>g5</samp>&rsquo; (or
  1424. &lsquo;<samp>arch3</samp>&rsquo;), &lsquo;<samp>g6</samp>&rsquo;, &lsquo;<samp>z900</samp>&rsquo; (or &lsquo;<samp>arch5</samp>&rsquo;), &lsquo;<samp>z990</samp>&rsquo; (or
  1425. &lsquo;<samp>arch6</samp>&rsquo;), &lsquo;<samp>z9-109</samp>&rsquo;, &lsquo;<samp>z9-ec</samp>&rsquo; (or &lsquo;<samp>arch7</samp>&rsquo;), &lsquo;<samp>z10</samp>&rsquo; (or
  1426. &lsquo;<samp>arch8</samp>&rsquo;), &lsquo;<samp>z196</samp>&rsquo; (or &lsquo;<samp>arch9</samp>&rsquo;), &lsquo;<samp>zEC12</samp>&rsquo; (or &lsquo;<samp>arch10</samp>&rsquo;),
  1427. &lsquo;<samp>z13</samp>&rsquo; (or &lsquo;<samp>arch11</samp>&rsquo;), &lsquo;<samp>z14</samp>&rsquo; (or &lsquo;<samp>arch12</samp>&rsquo;), or &lsquo;<samp>z15</samp>&rsquo;
  1428. (or &lsquo;<samp>arch13</samp>&rsquo;).
  1429. </p></dd>
  1430. <dt><code>-mregnames</code></dt>
  1431. <dt><code>-mno-regnames</code></dt>
  1432. <dd><p>Allow or disallow symbolic names for registers.
  1433. </p></dd>
  1434. <dt><code>-mwarn-areg-zero</code></dt>
  1435. <dd><p>Warn whenever the operand for a base or index register has been specified
  1436. but evaluates to zero.
  1437. </p></dd>
  1438. </dl>
  1439. <p>See <a href="TIC6X-Options.html#TIC6X-Options">TIC6X Options</a>, for the options available when as is configured
  1440. for a TMS320C6000 processor.
  1441. </p>
  1442. <p>See <a href="TILE_002dGx-Options.html#TILE_002dGx-Options">TILE-Gx Options</a>, for the options available when as is configured
  1443. for a TILE-Gx processor.
  1444. </p>
  1445. <p>See <a href="Visium-Options.html#Visium-Options">Visium Options</a>, for the options available when as is configured
  1446. for a Visium processor.
  1447. </p>
  1448. <p>See <a href="Xtensa-Options.html#Xtensa-Options">Xtensa Options</a>, for the options available when as is configured
  1449. for an Xtensa processor.
  1450. </p>
  1451. <p>See <a href="Z80-Options.html#Z80-Options">Z80 Options</a>, for the options available when as is configured
  1452. for an Z80 processor.
  1453. </p>
  1454. <table class="menu" border="0" cellspacing="0">
  1455. <tr><td align="left" valign="top">&bull; <a href="Manual.html#Manual" accesskey="1">Manual</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Structure of this Manual
  1456. </td></tr>
  1457. <tr><td align="left" valign="top">&bull; <a href="GNU-Assembler.html#GNU-Assembler" accesskey="2">GNU Assembler</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">The GNU Assembler
  1458. </td></tr>
  1459. <tr><td align="left" valign="top">&bull; <a href="Object-Formats.html#Object-Formats" accesskey="3">Object Formats</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Object File Formats
  1460. </td></tr>
  1461. <tr><td align="left" valign="top">&bull; <a href="Command-Line.html#Command-Line" accesskey="4">Command Line</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Command Line
  1462. </td></tr>
  1463. <tr><td align="left" valign="top">&bull; <a href="Input-Files.html#Input-Files" accesskey="5">Input Files</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Input Files
  1464. </td></tr>
  1465. <tr><td align="left" valign="top">&bull; <a href="Object.html#Object" accesskey="6">Object</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Output (Object) File
  1466. </td></tr>
  1467. <tr><td align="left" valign="top">&bull; <a href="Errors.html#Errors" accesskey="7">Errors</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">Error and Warning Messages
  1468. </td></tr>
  1469. </table>
  1470. <hr>
  1471. <div class="header">
  1472. <p>
  1473. Next: <a href="Invoking.html#Invoking" accesskey="n" rel="next">Invoking</a>, Previous: <a href="index.html#Top" accesskey="p" rel="prev">Top</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</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>
  1474. </div>
  1475. </body>
  1476. </html>