MIPS-Options.html 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  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: MIPS Options</title>
  15. <meta name="description" content="Using as: MIPS Options">
  16. <meta name="keywords" content="Using as: MIPS 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="MIPS_002dDependent.html#MIPS_002dDependent" rel="up" title="MIPS-Dependent">
  25. <link href="MIPS-Macros.html#MIPS-Macros" rel="next" title="MIPS Macros">
  26. <link href="MIPS_002dDependent.html#MIPS_002dDependent" rel="prev" title="MIPS-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="MIPS-Options"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="MIPS-Macros.html#MIPS-Macros" accesskey="n" rel="next">MIPS Macros</a>, Up: <a href="MIPS_002dDependent.html#MIPS_002dDependent" accesskey="u" rel="up">MIPS-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="Assembler-options"></a>
  64. <h4 class="subsection">9.27.1 Assembler options</h4>
  65. <p>The MIPS configurations of <small>GNU</small> <code>as</code> support these
  66. special options:
  67. </p>
  68. <dl compact="compact">
  69. <dd><a name="index-_002dG-option-_0028MIPS_0029"></a>
  70. </dd>
  71. <dt><code>-G <var>num</var></code></dt>
  72. <dd><p>Set the &ldquo;small data&rdquo; limit to <var>n</var> bytes. The default limit is 8 bytes.
  73. See <a href="MIPS-Small-Data.html#MIPS-Small-Data">Controlling the use of small data accesses</a>.
  74. </p>
  75. <a name="index-_002dEB-option-_0028MIPS_0029"></a>
  76. <a name="index-_002dEL-option-_0028MIPS_0029"></a>
  77. <a name="index-MIPS-big_002dendian-output"></a>
  78. <a name="index-MIPS-little_002dendian-output"></a>
  79. <a name="index-big_002dendian-output_002c-MIPS"></a>
  80. <a name="index-little_002dendian-output_002c-MIPS"></a>
  81. </dd>
  82. <dt><code>-EB</code></dt>
  83. <dt><code>-EL</code></dt>
  84. <dd><p>Any MIPS configuration of <code>as</code> can select big-endian or
  85. little-endian output at run time (unlike the other <small>GNU</small> development
  86. tools, which must be configured for one or the other). Use &lsquo;<samp>-EB</samp>&rsquo;
  87. to select big-endian output, and &lsquo;<samp>-EL</samp>&rsquo; for little-endian.
  88. </p>
  89. </dd>
  90. <dt><code>-KPIC</code></dt>
  91. <dd><a name="index-PIC-selection_002c-MIPS"></a>
  92. <a name="index-_002dKPIC-option_002c-MIPS"></a>
  93. <p>Generate SVR4-style PIC. This option tells the assembler to generate
  94. SVR4-style position-independent macro expansions. It also tells the
  95. assembler to mark the output file as PIC.
  96. </p>
  97. </dd>
  98. <dt><code>-mvxworks-pic</code></dt>
  99. <dd><a name="index-_002dmvxworks_002dpic-option_002c-MIPS"></a>
  100. <p>Generate VxWorks PIC. This option tells the assembler to generate
  101. VxWorks-style position-independent macro expansions.
  102. </p>
  103. <a name="index-MIPS-architecture-options"></a>
  104. </dd>
  105. <dt><code>-mips1</code></dt>
  106. <dt><code>-mips2</code></dt>
  107. <dt><code>-mips3</code></dt>
  108. <dt><code>-mips4</code></dt>
  109. <dt><code>-mips5</code></dt>
  110. <dt><code>-mips32</code></dt>
  111. <dt><code>-mips32r2</code></dt>
  112. <dt><code>-mips32r3</code></dt>
  113. <dt><code>-mips32r5</code></dt>
  114. <dt><code>-mips32r6</code></dt>
  115. <dt><code>-mips64</code></dt>
  116. <dt><code>-mips64r2</code></dt>
  117. <dt><code>-mips64r3</code></dt>
  118. <dt><code>-mips64r5</code></dt>
  119. <dt><code>-mips64r6</code></dt>
  120. <dd><p>Generate code for a particular MIPS Instruction Set Architecture level.
  121. &lsquo;<samp>-mips1</samp>&rsquo; corresponds to the R2000 and R3000 processors,
  122. &lsquo;<samp>-mips2</samp>&rsquo; to the R6000 processor, &lsquo;<samp>-mips3</samp>&rsquo; to the
  123. R4000 processor, and &lsquo;<samp>-mips4</samp>&rsquo; to the R8000 and R10000 processors.
  124. &lsquo;<samp>-mips5</samp>&rsquo;, &lsquo;<samp>-mips32</samp>&rsquo;, &lsquo;<samp>-mips32r2</samp>&rsquo;, &lsquo;<samp>-mips32r3</samp>&rsquo;,
  125. &lsquo;<samp>-mips32r5</samp>&rsquo;, &lsquo;<samp>-mips32r6</samp>&rsquo;, &lsquo;<samp>-mips64</samp>&rsquo;, &lsquo;<samp>-mips64r2</samp>&rsquo;,
  126. &lsquo;<samp>-mips64r3</samp>&rsquo;, &lsquo;<samp>-mips64r5</samp>&rsquo;, and &lsquo;<samp>-mips64r6</samp>&rsquo; correspond to
  127. generic MIPS V, MIPS32, MIPS32 Release 2, MIPS32 Release 3, MIPS32
  128. Release 5, MIPS32 Release 6, MIPS64, and MIPS64 Release 2, MIPS64
  129. Release 3, MIPS64 Release 5, and MIPS64 Release 6 ISA processors,
  130. respectively. You can also switch instruction sets during the assembly;
  131. see <a href="MIPS-ISA.html#MIPS-ISA">Directives to override the ISA level</a>.
  132. </p>
  133. </dd>
  134. <dt><code>-mgp32</code></dt>
  135. <dt><code>-mfp32</code></dt>
  136. <dd><p>Some macros have different expansions for 32-bit and 64-bit registers.
  137. The register sizes are normally inferred from the ISA and ABI, but these
  138. flags force a certain group of registers to be treated as 32 bits wide at
  139. all times. &lsquo;<samp>-mgp32</samp>&rsquo; controls the size of general-purpose registers
  140. and &lsquo;<samp>-mfp32</samp>&rsquo; controls the size of floating-point registers.
  141. </p>
  142. <p>The <code>.set gp=32</code> and <code>.set fp=32</code> directives allow the size
  143. of registers to be changed for parts of an object. The default value is
  144. restored by <code>.set gp=default</code> and <code>.set fp=default</code>.
  145. </p>
  146. <p>On some MIPS variants there is a 32-bit mode flag; when this flag is
  147. set, 64-bit instructions generate a trap. Also, some 32-bit OSes only
  148. save the 32-bit registers on a context switch, so it is essential never
  149. to use the 64-bit registers.
  150. </p>
  151. </dd>
  152. <dt><code>-mgp64</code></dt>
  153. <dt><code>-mfp64</code></dt>
  154. <dd><p>Assume that 64-bit registers are available. This is provided in the
  155. interests of symmetry with &lsquo;<samp>-mgp32</samp>&rsquo; and &lsquo;<samp>-mfp32</samp>&rsquo;.
  156. </p>
  157. <p>The <code>.set gp=64</code> and <code>.set fp=64</code> directives allow the size
  158. of registers to be changed for parts of an object. The default value is
  159. restored by <code>.set gp=default</code> and <code>.set fp=default</code>.
  160. </p>
  161. </dd>
  162. <dt><code>-mfpxx</code></dt>
  163. <dd><p>Make no assumptions about whether 32-bit or 64-bit floating-point
  164. registers are available. This is provided to support having modules
  165. compatible with either &lsquo;<samp>-mfp32</samp>&rsquo; or &lsquo;<samp>-mfp64</samp>&rsquo;. This option can
  166. only be used with MIPS II and above.
  167. </p>
  168. <p>The <code>.set fp=xx</code> directive allows a part of an object to be marked
  169. as not making assumptions about 32-bit or 64-bit FP registers. The
  170. default value is restored by <code>.set fp=default</code>.
  171. </p>
  172. </dd>
  173. <dt><code>-modd-spreg</code></dt>
  174. <dt><code>-mno-odd-spreg</code></dt>
  175. <dd><p>Enable use of floating-point operations on odd-numbered single-precision
  176. registers when supported by the ISA. &lsquo;<samp>-mfpxx</samp>&rsquo; implies
  177. &lsquo;<samp>-mno-odd-spreg</samp>&rsquo;, otherwise the default is &lsquo;<samp>-modd-spreg</samp>&rsquo;
  178. </p>
  179. </dd>
  180. <dt><code>-mips16</code></dt>
  181. <dt><code>-no-mips16</code></dt>
  182. <dd><p>Generate code for the MIPS 16 processor. This is equivalent to putting
  183. <code>.set mips16</code> at the start of the assembly file. &lsquo;<samp>-no-mips16</samp>&rsquo;
  184. turns off this option.
  185. </p>
  186. </dd>
  187. <dt><code>-mmicromips</code></dt>
  188. <dt><code>-mno-micromips</code></dt>
  189. <dd><p>Generate code for the microMIPS processor. This is equivalent to putting
  190. <code>.set micromips</code> at the start of the assembly file. &lsquo;<samp>-mno-micromips</samp>&rsquo;
  191. turns off this option. This is equivalent to putting <code>.set nomicromips</code>
  192. at the start of the assembly file.
  193. </p>
  194. </dd>
  195. <dt><code>-msmartmips</code></dt>
  196. <dt><code>-mno-smartmips</code></dt>
  197. <dd><p>Enables the SmartMIPS extensions to the MIPS32 instruction set, which
  198. provides a number of new instructions which target smartcard and
  199. cryptographic applications. This is equivalent to putting
  200. <code>.set smartmips</code> at the start of the assembly file.
  201. &lsquo;<samp>-mno-smartmips</samp>&rsquo; turns off this option.
  202. </p>
  203. </dd>
  204. <dt><code>-mips3d</code></dt>
  205. <dt><code>-no-mips3d</code></dt>
  206. <dd><p>Generate code for the MIPS-3D Application Specific Extension.
  207. This tells the assembler to accept MIPS-3D instructions.
  208. &lsquo;<samp>-no-mips3d</samp>&rsquo; turns off this option.
  209. </p>
  210. </dd>
  211. <dt><code>-mdmx</code></dt>
  212. <dt><code>-no-mdmx</code></dt>
  213. <dd><p>Generate code for the MDMX Application Specific Extension.
  214. This tells the assembler to accept MDMX instructions.
  215. &lsquo;<samp>-no-mdmx</samp>&rsquo; turns off this option.
  216. </p>
  217. </dd>
  218. <dt><code>-mdsp</code></dt>
  219. <dt><code>-mno-dsp</code></dt>
  220. <dd><p>Generate code for the DSP Release 1 Application Specific Extension.
  221. This tells the assembler to accept DSP Release 1 instructions.
  222. &lsquo;<samp>-mno-dsp</samp>&rsquo; turns off this option.
  223. </p>
  224. </dd>
  225. <dt><code>-mdspr2</code></dt>
  226. <dt><code>-mno-dspr2</code></dt>
  227. <dd><p>Generate code for the DSP Release 2 Application Specific Extension.
  228. This option implies &lsquo;<samp>-mdsp</samp>&rsquo;.
  229. This tells the assembler to accept DSP Release 2 instructions.
  230. &lsquo;<samp>-mno-dspr2</samp>&rsquo; turns off this option.
  231. </p>
  232. </dd>
  233. <dt><code>-mdspr3</code></dt>
  234. <dt><code>-mno-dspr3</code></dt>
  235. <dd><p>Generate code for the DSP Release 3 Application Specific Extension.
  236. This option implies &lsquo;<samp>-mdsp</samp>&rsquo; and &lsquo;<samp>-mdspr2</samp>&rsquo;.
  237. This tells the assembler to accept DSP Release 3 instructions.
  238. &lsquo;<samp>-mno-dspr3</samp>&rsquo; turns off this option.
  239. </p>
  240. </dd>
  241. <dt><code>-mmt</code></dt>
  242. <dt><code>-mno-mt</code></dt>
  243. <dd><p>Generate code for the MT Application Specific Extension.
  244. This tells the assembler to accept MT instructions.
  245. &lsquo;<samp>-mno-mt</samp>&rsquo; turns off this option.
  246. </p>
  247. </dd>
  248. <dt><code>-mmcu</code></dt>
  249. <dt><code>-mno-mcu</code></dt>
  250. <dd><p>Generate code for the MCU Application Specific Extension.
  251. This tells the assembler to accept MCU instructions.
  252. &lsquo;<samp>-mno-mcu</samp>&rsquo; turns off this option.
  253. </p>
  254. </dd>
  255. <dt><code>-mmsa</code></dt>
  256. <dt><code>-mno-msa</code></dt>
  257. <dd><p>Generate code for the MIPS SIMD Architecture Extension.
  258. This tells the assembler to accept MSA instructions.
  259. &lsquo;<samp>-mno-msa</samp>&rsquo; turns off this option.
  260. </p>
  261. </dd>
  262. <dt><code>-mxpa</code></dt>
  263. <dt><code>-mno-xpa</code></dt>
  264. <dd><p>Generate code for the MIPS eXtended Physical Address (XPA) Extension.
  265. This tells the assembler to accept XPA instructions.
  266. &lsquo;<samp>-mno-xpa</samp>&rsquo; turns off this option.
  267. </p>
  268. </dd>
  269. <dt><code>-mvirt</code></dt>
  270. <dt><code>-mno-virt</code></dt>
  271. <dd><p>Generate code for the Virtualization Application Specific Extension.
  272. This tells the assembler to accept Virtualization instructions.
  273. &lsquo;<samp>-mno-virt</samp>&rsquo; turns off this option.
  274. </p>
  275. </dd>
  276. <dt><code>-minsn32</code></dt>
  277. <dt><code>-mno-insn32</code></dt>
  278. <dd><p>Only use 32-bit instruction encodings when generating code for the
  279. microMIPS processor. This option inhibits the use of any 16-bit
  280. instructions. This is equivalent to putting <code>.set insn32</code> at
  281. the start of the assembly file. &lsquo;<samp>-mno-insn32</samp>&rsquo; turns off this
  282. option. This is equivalent to putting <code>.set noinsn32</code> at the
  283. start of the assembly file. By default &lsquo;<samp>-mno-insn32</samp>&rsquo; is
  284. selected, allowing all instructions to be used.
  285. </p>
  286. </dd>
  287. <dt><code>-mfix7000</code></dt>
  288. <dt><code>-mno-fix7000</code></dt>
  289. <dd><p>Cause nops to be inserted if the read of the destination register
  290. of an mfhi or mflo instruction occurs in the following two instructions.
  291. </p>
  292. </dd>
  293. <dt><code>-mfix-rm7000</code></dt>
  294. <dt><code>-mno-fix-rm7000</code></dt>
  295. <dd><p>Cause nops to be inserted if a dmult or dmultu instruction is
  296. followed by a load instruction.
  297. </p>
  298. </dd>
  299. <dt><code>-mfix-loongson2f-jump</code></dt>
  300. <dt><code>-mno-fix-loongson2f-jump</code></dt>
  301. <dd><p>Eliminate instruction fetch from outside 256M region to work around the
  302. Loongson2F &lsquo;<samp>jump</samp>&rsquo; instructions. Without it, under extreme cases,
  303. the kernel may crash. The issue has been solved in latest processor
  304. batches, but this fix has no side effect to them.
  305. </p>
  306. </dd>
  307. <dt><code>-mfix-loongson2f-nop</code></dt>
  308. <dt><code>-mno-fix-loongson2f-nop</code></dt>
  309. <dd><p>Replace nops by <code>or at,at,zero</code> to work around the Loongson2F
  310. &lsquo;<samp>nop</samp>&rsquo; errata. Without it, under extreme cases, the CPU might
  311. deadlock. The issue has been solved in later Loongson2F batches, but
  312. this fix has no side effect to them.
  313. </p>
  314. </dd>
  315. <dt><code>-mfix-vr4120</code></dt>
  316. <dt><code>-mno-fix-vr4120</code></dt>
  317. <dd><p>Insert nops to work around certain VR4120 errata. This option is
  318. intended to be used on GCC-generated code: it is not designed to catch
  319. all problems in hand-written assembler code.
  320. </p>
  321. </dd>
  322. <dt><code>-mfix-vr4130</code></dt>
  323. <dt><code>-mno-fix-vr4130</code></dt>
  324. <dd><p>Insert nops to work around the VR4130 &lsquo;<samp>mflo</samp>&rsquo;/&lsquo;<samp>mfhi</samp>&rsquo; errata.
  325. </p>
  326. </dd>
  327. <dt><code>-mfix-24k</code></dt>
  328. <dt><code>-mno-fix-24k</code></dt>
  329. <dd><p>Insert nops to work around the 24K &lsquo;<samp>eret</samp>&rsquo;/&lsquo;<samp>deret</samp>&rsquo; errata.
  330. </p>
  331. </dd>
  332. <dt><code>-mfix-cn63xxp1</code></dt>
  333. <dt><code>-mno-fix-cn63xxp1</code></dt>
  334. <dd><p>Replace <code>pref</code> hints 0 - 4 and 6 - 24 with hint 28 to work around
  335. certain CN63XXP1 errata.
  336. </p>
  337. </dd>
  338. <dt><code>-m4010</code></dt>
  339. <dt><code>-no-m4010</code></dt>
  340. <dd><p>Generate code for the LSI R4010 chip. This tells the assembler to
  341. accept the R4010-specific instructions (&lsquo;<samp>addciu</samp>&rsquo;, &lsquo;<samp>ffc</samp>&rsquo;,
  342. etc.), and to not schedule &lsquo;<samp>nop</samp>&rsquo; instructions around accesses to
  343. the &lsquo;<samp>HI</samp>&rsquo; and &lsquo;<samp>LO</samp>&rsquo; registers. &lsquo;<samp>-no-m4010</samp>&rsquo; turns off this
  344. option.
  345. </p>
  346. </dd>
  347. <dt><code>-m4650</code></dt>
  348. <dt><code>-no-m4650</code></dt>
  349. <dd><p>Generate code for the MIPS R4650 chip. This tells the assembler to accept
  350. the &lsquo;<samp>mad</samp>&rsquo; and &lsquo;<samp>madu</samp>&rsquo; instruction, and to not schedule &lsquo;<samp>nop</samp>&rsquo;
  351. instructions around accesses to the &lsquo;<samp>HI</samp>&rsquo; and &lsquo;<samp>LO</samp>&rsquo; registers.
  352. &lsquo;<samp>-no-m4650</samp>&rsquo; turns off this option.
  353. </p>
  354. </dd>
  355. <dt><code>-m3900</code></dt>
  356. <dt><code>-no-m3900</code></dt>
  357. <dt><code>-m4100</code></dt>
  358. <dt><code>-no-m4100</code></dt>
  359. <dd><p>For each option &lsquo;<samp>-m<var>nnnn</var></samp>&rsquo;, generate code for the MIPS
  360. R<var>nnnn</var> chip. This tells the assembler to accept instructions
  361. specific to that chip, and to schedule for that chip&rsquo;s hazards.
  362. </p>
  363. </dd>
  364. <dt><code>-march=<var>cpu</var></code></dt>
  365. <dd><p>Generate code for a particular MIPS CPU. It is exactly equivalent to
  366. &lsquo;<samp>-m<var>cpu</var></samp>&rsquo;, except that there are more value of <var>cpu</var>
  367. understood. Valid <var>cpu</var> value are:
  368. </p>
  369. <blockquote>
  370. <p>2000,
  371. 3000,
  372. 3900,
  373. 4000,
  374. 4010,
  375. 4100,
  376. 4111,
  377. vr4120,
  378. vr4130,
  379. vr4181,
  380. 4300,
  381. 4400,
  382. 4600,
  383. 4650,
  384. 5000,
  385. rm5200,
  386. rm5230,
  387. rm5231,
  388. rm5261,
  389. rm5721,
  390. vr5400,
  391. vr5500,
  392. 6000,
  393. rm7000,
  394. 8000,
  395. rm9000,
  396. 10000,
  397. 12000,
  398. 14000,
  399. 16000,
  400. 4kc,
  401. 4km,
  402. 4kp,
  403. 4ksc,
  404. 4kec,
  405. 4kem,
  406. 4kep,
  407. 4ksd,
  408. m4k,
  409. m4kp,
  410. m14k,
  411. m14kc,
  412. m14ke,
  413. m14kec,
  414. 24kc,
  415. 24kf2_1,
  416. 24kf,
  417. 24kf1_1,
  418. 24kec,
  419. 24kef2_1,
  420. 24kef,
  421. 24kef1_1,
  422. 34kc,
  423. 34kf2_1,
  424. 34kf,
  425. 34kf1_1,
  426. 34kn,
  427. 74kc,
  428. 74kf2_1,
  429. 74kf,
  430. 74kf1_1,
  431. 74kf3_2,
  432. 1004kc,
  433. 1004kf2_1,
  434. 1004kf,
  435. 1004kf1_1,
  436. interaptiv,
  437. m5100,
  438. m5101,
  439. p5600,
  440. 5kc,
  441. 5kf,
  442. 20kc,
  443. 25kf,
  444. sb1,
  445. sb1a,
  446. i6400,
  447. p6600,
  448. loongson2e,
  449. loongson2f,
  450. loongson3a,
  451. octeon,
  452. octeon+,
  453. octeon2,
  454. octeon3,
  455. xlr,
  456. xlp
  457. </p></blockquote>
  458. <p>For compatibility reasons, &lsquo;<samp><var>n</var>x</samp>&rsquo; and &lsquo;<samp><var>b</var>fx</samp>&rsquo; are
  459. accepted as synonyms for &lsquo;<samp><var>n</var>f1_1</samp>&rsquo;. These values are
  460. deprecated.
  461. </p>
  462. </dd>
  463. <dt><code>-mtune=<var>cpu</var></code></dt>
  464. <dd><p>Schedule and tune for a particular MIPS CPU. Valid <var>cpu</var> values are
  465. identical to &lsquo;<samp>-march=<var>cpu</var></samp>&rsquo;.
  466. </p>
  467. </dd>
  468. <dt><code>-mabi=<var>abi</var></code></dt>
  469. <dd><p>Record which ABI the source code uses. The recognized arguments
  470. are: &lsquo;<samp>32</samp>&rsquo;, &lsquo;<samp>n32</samp>&rsquo;, &lsquo;<samp>o64</samp>&rsquo;, &lsquo;<samp>64</samp>&rsquo; and &lsquo;<samp>eabi</samp>&rsquo;.
  471. </p>
  472. </dd>
  473. <dt><code>-msym32</code></dt>
  474. <dt><code>-mno-sym32</code></dt>
  475. <dd><a name="index-_002dmsym32"></a>
  476. <a name="index-_002dmno_002dsym32"></a>
  477. <p>Equivalent to adding <code>.set sym32</code> or <code>.set nosym32</code> to
  478. the beginning of the assembler input. See <a href="MIPS-Symbol-Sizes.html#MIPS-Symbol-Sizes">MIPS Symbol Sizes</a>.
  479. </p>
  480. <a name="index-_002dnocpp-ignored-_0028MIPS_0029"></a>
  481. </dd>
  482. <dt><code>-nocpp</code></dt>
  483. <dd><p>This option is ignored. It is accepted for command-line compatibility with
  484. other assemblers, which use it to turn off C style preprocessing. With
  485. <small>GNU</small> <code>as</code>, there is no need for &lsquo;<samp>-nocpp</samp>&rsquo;, because the
  486. <small>GNU</small> assembler itself never runs the C preprocessor.
  487. </p>
  488. </dd>
  489. <dt><code>-msoft-float</code></dt>
  490. <dt><code>-mhard-float</code></dt>
  491. <dd><p>Disable or enable floating-point instructions. Note that by default
  492. floating-point instructions are always allowed even with CPU targets
  493. that don&rsquo;t have support for these instructions.
  494. </p>
  495. </dd>
  496. <dt><code>-msingle-float</code></dt>
  497. <dt><code>-mdouble-float</code></dt>
  498. <dd><p>Disable or enable double-precision floating-point operations. Note
  499. that by default double-precision floating-point operations are always
  500. allowed even with CPU targets that don&rsquo;t have support for these
  501. operations.
  502. </p>
  503. </dd>
  504. <dt><code>--construct-floats</code></dt>
  505. <dt><code>--no-construct-floats</code></dt>
  506. <dd><p>The <code>--no-construct-floats</code> option disables the construction of
  507. double width floating point constants by loading the two halves of the
  508. value into the two single width floating point registers that make up
  509. the double width register. This feature is useful if the processor
  510. support the FR bit in its status register, and this bit is known (by
  511. the programmer) to be set. This bit prevents the aliasing of the double
  512. width register by the single width registers.
  513. </p>
  514. <p>By default <code>--construct-floats</code> is selected, allowing construction
  515. of these floating point constants.
  516. </p>
  517. </dd>
  518. <dt><code>--relax-branch</code></dt>
  519. <dt><code>--no-relax-branch</code></dt>
  520. <dd><p>The &lsquo;<samp>--relax-branch</samp>&rsquo; option enables the relaxation of out-of-range
  521. branches. Any branches whose target cannot be reached directly are
  522. converted to a small instruction sequence including an inverse-condition
  523. branch to the physically next instruction, and a jump to the original
  524. target is inserted between the two instructions. In PIC code the jump
  525. will involve further instructions for address calculation.
  526. </p>
  527. <p>The <code>BC1ANY2F</code>, <code>BC1ANY2T</code>, <code>BC1ANY4F</code>, <code>BC1ANY4T</code>,
  528. <code>BPOSGE32</code> and <code>BPOSGE64</code> instructions are excluded from
  529. relaxation, because they have no complementing counterparts. They could
  530. be relaxed with the use of a longer sequence involving another branch,
  531. however this has not been implemented and if their target turns out of
  532. reach, they produce an error even if branch relaxation is enabled.
  533. </p>
  534. <p>Also no MIPS16 branches are ever relaxed.
  535. </p>
  536. <p>By default &lsquo;<samp>--no-relax-branch</samp>&rsquo; is selected, causing any out-of-range
  537. branches to produce an error.
  538. </p>
  539. </dd>
  540. <dt><code>-mignore-branch-isa</code></dt>
  541. <dt><code>-mno-ignore-branch-isa</code></dt>
  542. <dd><p>Ignore branch checks for invalid transitions between ISA modes.
  543. </p>
  544. <p>The semantics of branches does not provide for an ISA mode switch, so in
  545. most cases the ISA mode a branch has been encoded for has to be the same
  546. as the ISA mode of the branch&rsquo;s target label. If the ISA modes do not
  547. match, then such a branch, if taken, will cause the ISA mode to remain
  548. unchanged and instructions that follow will be executed in the wrong ISA
  549. mode causing the program to misbehave or crash.
  550. </p>
  551. <p>In the case of the <code>BAL</code> instruction it may be possible to relax
  552. it to an equivalent <code>JALX</code> instruction so that the ISA mode is
  553. switched at the run time as required. For other branches no relaxation
  554. is possible and therefore GAS has checks implemented that verify in
  555. branch assembly that the two ISA modes match, and report an error
  556. otherwise so that the problem with code can be diagnosed at the assembly
  557. time rather than at the run time.
  558. </p>
  559. <p>However some assembly code, including generated code produced by some
  560. versions of GCC, may incorrectly include branches to data labels, which
  561. appear to require a mode switch but are either dead or immediately
  562. followed by valid instructions encoded for the same ISA the branch has
  563. been encoded for. While not strictly correct at the source level such
  564. code will execute as intended, so to help with these cases
  565. &lsquo;<samp>-mignore-branch-isa</samp>&rsquo; is supported which disables ISA mode checks
  566. for branches.
  567. </p>
  568. <p>By default &lsquo;<samp>-mno-ignore-branch-isa</samp>&rsquo; is selected, causing any invalid
  569. branch requiring a transition between ISA modes to produce an error.
  570. </p>
  571. <a name="index-_002dmnan_003d-command-line-option_002c-MIPS"></a>
  572. </dd>
  573. <dt><code>-mnan=<var>encoding</var></code></dt>
  574. <dd><p>This option indicates whether the source code uses the IEEE 2008
  575. NaN encoding (<samp>-mnan=2008</samp>) or the original MIPS encoding
  576. (<samp>-mnan=legacy</samp>). It is equivalent to adding a <code>.nan</code>
  577. directive to the beginning of the source file. See <a href="MIPS-NaN-Encodings.html#MIPS-NaN-Encodings">MIPS NaN Encodings</a>.
  578. </p>
  579. <p><samp>-mnan=legacy</samp> is the default if no <samp>-mnan</samp> option or
  580. <code>.nan</code> directive is used.
  581. </p>
  582. </dd>
  583. <dt><code>--trap</code></dt>
  584. <dt><code>--no-break</code></dt>
  585. <dd><p><code>as</code> automatically macro expands certain division and
  586. multiplication instructions to check for overflow and division by zero. This
  587. option causes <code>as</code> to generate code to take a trap exception
  588. rather than a break exception when an error is detected. The trap instructions
  589. are only supported at Instruction Set Architecture level 2 and higher.
  590. </p>
  591. </dd>
  592. <dt><code>--break</code></dt>
  593. <dt><code>--no-trap</code></dt>
  594. <dd><p>Generate code to take a break exception rather than a trap exception when an
  595. error is detected. This is the default.
  596. </p>
  597. </dd>
  598. <dt><code>-mpdr</code></dt>
  599. <dt><code>-mno-pdr</code></dt>
  600. <dd><p>Control generation of <code>.pdr</code> sections. Off by default on IRIX, on
  601. elsewhere.
  602. </p>
  603. </dd>
  604. <dt><code>-mshared</code></dt>
  605. <dt><code>-mno-shared</code></dt>
  606. <dd><p>When generating code using the Unix calling conventions (selected by
  607. &lsquo;<samp>-KPIC</samp>&rsquo; or &lsquo;<samp>-mcall_shared</samp>&rsquo;), gas will normally generate code
  608. which can go into a shared library. The &lsquo;<samp>-mno-shared</samp>&rsquo; option
  609. tells gas to generate code which uses the calling convention, but can
  610. not go into a shared library. The resulting code is slightly more
  611. efficient. This option only affects the handling of the
  612. &lsquo;<samp>.cpload</samp>&rsquo; and &lsquo;<samp>.cpsetup</samp>&rsquo; pseudo-ops.
  613. </p></dd>
  614. </dl>
  615. <hr>
  616. <div class="header">
  617. <p>
  618. Next: <a href="MIPS-Macros.html#MIPS-Macros" accesskey="n" rel="next">MIPS Macros</a>, Up: <a href="MIPS_002dDependent.html#MIPS_002dDependent" accesskey="u" rel="up">MIPS-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>
  619. </div>
  620. </body>
  621. </html>