選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

722 行
29KB

  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>ARM Options (Using as)</title>
  16. <meta name="description" content="ARM Options (Using as)">
  17. <meta name="keywords" content="ARM Options (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="ARM_002dDependent.html#ARM_002dDependent" rel="up" title="ARM-Dependent">
  25. <link href="ARM-Syntax.html#ARM-Syntax" rel="next" title="ARM Syntax">
  26. <link href="ARM_002dDependent.html#ARM_002dDependent" rel="prev" title="ARM-Dependent">
  27. <style type="text/css">
  28. <!--
  29. a.summary-letter {text-decoration: none}
  30. blockquote.indentedblock {margin-right: 0em}
  31. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  32. blockquote.smallquotation {font-size: smaller}
  33. div.display {margin-left: 3.2em}
  34. div.example {margin-left: 3.2em}
  35. div.lisp {margin-left: 3.2em}
  36. div.smalldisplay {margin-left: 3.2em}
  37. div.smallexample {margin-left: 3.2em}
  38. div.smalllisp {margin-left: 3.2em}
  39. kbd {font-style: oblique}
  40. pre.display {font-family: inherit}
  41. pre.format {font-family: inherit}
  42. pre.menu-comment {font-family: serif}
  43. pre.menu-preformatted {font-family: serif}
  44. pre.smalldisplay {font-family: inherit; font-size: smaller}
  45. pre.smallexample {font-size: smaller}
  46. pre.smallformat {font-family: inherit; font-size: smaller}
  47. pre.smalllisp {font-size: smaller}
  48. span.nolinebreak {white-space: nowrap}
  49. span.roman {font-family: initial; font-weight: normal}
  50. span.sansserif {font-family: sans-serif; font-weight: normal}
  51. ul.no-bullet {list-style: none}
  52. -->
  53. </style>
  54. </head>
  55. <body lang="en">
  56. <a name="ARM-Options"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="ARM-Syntax.html#ARM-Syntax" accesskey="n" rel="next">ARM Syntax</a>, Up: <a href="ARM_002dDependent.html#ARM_002dDependent" accesskey="u" rel="up">ARM-Dependent</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="AS-Index.html#AS-Index" title="Index" rel="index">Index</a>]</p>
  60. </div>
  61. <hr>
  62. <a name="Options-3"></a>
  63. <h4 class="subsection">9.4.1 Options</h4>
  64. <a name="index-ARM-options-_0028none_0029"></a>
  65. <a name="index-options-for-ARM-_0028none_0029"></a>
  66. <dl compact="compact">
  67. <dd>
  68. <a name="index-_002dmcpu_003d-command_002dline-option_002c-ARM"></a>
  69. </dd>
  70. <dt><code>-mcpu=<var>processor</var>[+<var>extension</var>&hellip;]</code></dt>
  71. <dd><p>This option specifies the target processor. The assembler will issue an
  72. error message if an attempt is made to assemble an instruction which
  73. will not execute on the target processor. The following processor names are
  74. recognized:
  75. <code>arm1</code>,
  76. <code>arm2</code>,
  77. <code>arm250</code>,
  78. <code>arm3</code>,
  79. <code>arm6</code>,
  80. <code>arm60</code>,
  81. <code>arm600</code>,
  82. <code>arm610</code>,
  83. <code>arm620</code>,
  84. <code>arm7</code>,
  85. <code>arm7m</code>,
  86. <code>arm7d</code>,
  87. <code>arm7dm</code>,
  88. <code>arm7di</code>,
  89. <code>arm7dmi</code>,
  90. <code>arm70</code>,
  91. <code>arm700</code>,
  92. <code>arm700i</code>,
  93. <code>arm710</code>,
  94. <code>arm710t</code>,
  95. <code>arm720</code>,
  96. <code>arm720t</code>,
  97. <code>arm740t</code>,
  98. <code>arm710c</code>,
  99. <code>arm7100</code>,
  100. <code>arm7500</code>,
  101. <code>arm7500fe</code>,
  102. <code>arm7t</code>,
  103. <code>arm7tdmi</code>,
  104. <code>arm7tdmi-s</code>,
  105. <code>arm8</code>,
  106. <code>arm810</code>,
  107. <code>strongarm</code>,
  108. <code>strongarm1</code>,
  109. <code>strongarm110</code>,
  110. <code>strongarm1100</code>,
  111. <code>strongarm1110</code>,
  112. <code>arm9</code>,
  113. <code>arm920</code>,
  114. <code>arm920t</code>,
  115. <code>arm922t</code>,
  116. <code>arm940t</code>,
  117. <code>arm9tdmi</code>,
  118. <code>fa526</code> (Faraday FA526 processor),
  119. <code>fa626</code> (Faraday FA626 processor),
  120. <code>arm9e</code>,
  121. <code>arm926e</code>,
  122. <code>arm926ej-s</code>,
  123. <code>arm946e-r0</code>,
  124. <code>arm946e</code>,
  125. <code>arm946e-s</code>,
  126. <code>arm966e-r0</code>,
  127. <code>arm966e</code>,
  128. <code>arm966e-s</code>,
  129. <code>arm968e-s</code>,
  130. <code>arm10t</code>,
  131. <code>arm10tdmi</code>,
  132. <code>arm10e</code>,
  133. <code>arm1020</code>,
  134. <code>arm1020t</code>,
  135. <code>arm1020e</code>,
  136. <code>arm1022e</code>,
  137. <code>arm1026ej-s</code>,
  138. <code>fa606te</code> (Faraday FA606TE processor),
  139. <code>fa616te</code> (Faraday FA616TE processor),
  140. <code>fa626te</code> (Faraday FA626TE processor),
  141. <code>fmp626</code> (Faraday FMP626 processor),
  142. <code>fa726te</code> (Faraday FA726TE processor),
  143. <code>arm1136j-s</code>,
  144. <code>arm1136jf-s</code>,
  145. <code>arm1156t2-s</code>,
  146. <code>arm1156t2f-s</code>,
  147. <code>arm1176jz-s</code>,
  148. <code>arm1176jzf-s</code>,
  149. <code>mpcore</code>,
  150. <code>mpcorenovfp</code>,
  151. <code>cortex-a5</code>,
  152. <code>cortex-a7</code>,
  153. <code>cortex-a8</code>,
  154. <code>cortex-a9</code>,
  155. <code>cortex-a15</code>,
  156. <code>cortex-a17</code>,
  157. <code>cortex-a32</code>,
  158. <code>cortex-a35</code>,
  159. <code>cortex-a53</code>,
  160. <code>cortex-a55</code>,
  161. <code>cortex-a57</code>,
  162. <code>cortex-a72</code>,
  163. <code>cortex-a73</code>,
  164. <code>cortex-a75</code>,
  165. <code>cortex-a76</code>,
  166. <code>cortex-a76ae</code>,
  167. <code>cortex-a77</code>,
  168. <code>ares</code>,
  169. <code>cortex-r4</code>,
  170. <code>cortex-r4f</code>,
  171. <code>cortex-r5</code>,
  172. <code>cortex-r7</code>,
  173. <code>cortex-r8</code>,
  174. <code>cortex-r52</code>,
  175. <code>cortex-m35p</code>,
  176. <code>cortex-m33</code>,
  177. <code>cortex-m23</code>,
  178. <code>cortex-m7</code>,
  179. <code>cortex-m4</code>,
  180. <code>cortex-m3</code>,
  181. <code>cortex-m1</code>,
  182. <code>cortex-m0</code>,
  183. <code>cortex-m0plus</code>,
  184. <code>exynos-m1</code>,
  185. <code>marvell-pj4</code>,
  186. <code>marvell-whitney</code>,
  187. <code>neoverse-n1</code>,
  188. <code>neoverse-n2</code>,
  189. <code>neoverse-v1</code>,
  190. <code>xgene1</code>,
  191. <code>xgene2</code>,
  192. <code>ep9312</code> (ARM920 with Cirrus Maverick coprocessor),
  193. <code>i80200</code> (Intel XScale processor)
  194. <code>iwmmxt</code> (Intel XScale processor with Wireless MMX technology coprocessor)
  195. and
  196. <code>xscale</code>.
  197. The special name <code>all</code> may be used to allow the
  198. assembler to accept instructions valid for any ARM processor.
  199. </p>
  200. <p>In addition to the basic instruction set, the assembler can be told to
  201. accept various extension mnemonics that extend the processor using the
  202. co-processor instruction space. For example, <code>-mcpu=arm920+maverick</code>
  203. is equivalent to specifying <code>-mcpu=ep9312</code>.
  204. </p>
  205. <p>Multiple extensions may be specified, separated by a <code>+</code>. The
  206. extensions should be specified in ascending alphabetical order.
  207. </p>
  208. <p>Some extensions may be restricted to particular architectures; this is
  209. documented in the list of extensions below.
  210. </p>
  211. <p>Extension mnemonics may also be removed from those the assembler accepts.
  212. This is done be prepending <code>no</code> to the option that adds the extension.
  213. Extensions that are removed should be listed after all extensions which have
  214. been added, again in ascending alphabetical order. For example,
  215. <code>-mcpu=ep9312+nomaverick</code> is equivalent to specifying <code>-mcpu=arm920</code>.
  216. </p>
  217. <p>The following extensions are currently supported:
  218. <code>bf16</code> (BFloat16 extensions for v8.6-A architecture),
  219. <code>i8mm</code> (Int8 Matrix Multiply extensions for v8.6-A architecture),
  220. <code>crc</code>
  221. <code>crypto</code> (Cryptography Extensions for v8-A architecture, implies <code>fp+simd</code>),
  222. <code>dotprod</code> (Dot Product Extensions for v8.2-A architecture, implies <code>fp+simd</code>),
  223. <code>fp</code> (Floating Point Extensions for v8-A architecture),
  224. <code>fp16</code> (FP16 Extensions for v8.2-A architecture, implies <code>fp</code>),
  225. <code>fp16fml</code> (FP16 Floating Point Multiplication Variant Extensions for v8.2-A architecture, implies <code>fp16</code>),
  226. <code>idiv</code> (Integer Divide Extensions for v7-A and v7-R architectures),
  227. <code>iwmmxt</code>,
  228. <code>iwmmxt2</code>,
  229. <code>xscale</code>,
  230. <code>maverick</code>,
  231. <code>mp</code> (Multiprocessing Extensions for v7-A and v7-R
  232. architectures),
  233. <code>os</code> (Operating System for v6M architecture),
  234. <code>predres</code> (Execution and Data Prediction Restriction Instruction for
  235. v8-A architectures, added by default from v8.5-A),
  236. <code>sb</code> (Speculation Barrier Instruction for v8-A architectures, added by
  237. default from v8.5-A),
  238. <code>sec</code> (Security Extensions for v6K and v7-A architectures),
  239. <code>simd</code> (Advanced SIMD Extensions for v8-A architecture, implies <code>fp</code>),
  240. <code>virt</code> (Virtualization Extensions for v7-A architecture, implies
  241. <code>idiv</code>),
  242. <code>pan</code> (Privileged Access Never Extensions for v8-A architecture),
  243. <code>ras</code> (Reliability, Availability and Serviceability extensions
  244. for v8-A architecture),
  245. <code>rdma</code> (ARMv8.1 Advanced SIMD extensions for v8-A architecture, implies
  246. <code>simd</code>)
  247. and
  248. <code>xscale</code>.
  249. </p>
  250. <a name="index-_002dmarch_003d-command_002dline-option_002c-ARM"></a>
  251. </dd>
  252. <dt><code>-march=<var>architecture</var>[+<var>extension</var>&hellip;]</code></dt>
  253. <dd><p>This option specifies the target architecture. The assembler will issue
  254. an error message if an attempt is made to assemble an instruction which
  255. will not execute on the target architecture. The following architecture
  256. names are recognized:
  257. <code>armv1</code>,
  258. <code>armv2</code>,
  259. <code>armv2a</code>,
  260. <code>armv2s</code>,
  261. <code>armv3</code>,
  262. <code>armv3m</code>,
  263. <code>armv4</code>,
  264. <code>armv4xm</code>,
  265. <code>armv4t</code>,
  266. <code>armv4txm</code>,
  267. <code>armv5</code>,
  268. <code>armv5t</code>,
  269. <code>armv5txm</code>,
  270. <code>armv5te</code>,
  271. <code>armv5texp</code>,
  272. <code>armv6</code>,
  273. <code>armv6j</code>,
  274. <code>armv6k</code>,
  275. <code>armv6z</code>,
  276. <code>armv6kz</code>,
  277. <code>armv6-m</code>,
  278. <code>armv6s-m</code>,
  279. <code>armv7</code>,
  280. <code>armv7-a</code>,
  281. <code>armv7ve</code>,
  282. <code>armv7-r</code>,
  283. <code>armv7-m</code>,
  284. <code>armv7e-m</code>,
  285. <code>armv8-a</code>,
  286. <code>armv8.1-a</code>,
  287. <code>armv8.2-a</code>,
  288. <code>armv8.3-a</code>,
  289. <code>armv8-r</code>,
  290. <code>armv8.4-a</code>,
  291. <code>armv8.5-a</code>,
  292. <code>armv8-m.base</code>,
  293. <code>armv8-m.main</code>,
  294. <code>armv8.1-m.main</code>,
  295. <code>armv8.6-a</code>,
  296. <code>iwmmxt</code>,
  297. <code>iwmmxt2</code>
  298. and
  299. <code>xscale</code>.
  300. If both <code>-mcpu</code> and
  301. <code>-march</code> are specified, the assembler will use
  302. the setting for <code>-mcpu</code>.
  303. </p>
  304. <p>The architecture option can be extended with a set extension options. These
  305. extensions are context sensitive, i.e. the same extension may mean different
  306. things when used with different architectures. When used together with a
  307. <code>-mfpu</code> option, the union of both feature enablement is taken.
  308. See their availability and meaning below:
  309. </p>
  310. <p>For <code>armv5te</code>, <code>armv5texp</code>, <code>armv5tej</code>, <code>armv6</code>, <code>armv6j</code>, <code>armv6k</code>, <code>armv6z</code>, <code>armv6kz</code>, <code>armv6zk</code>, <code>armv6t2</code>, <code>armv6kt2</code> and <code>armv6zt2</code>:
  311. </p>
  312. <p><code>+fp</code>: Enables VFPv2 instructions.
  313. <code>+nofp</code>: Disables all FPU instrunctions.
  314. </p>
  315. <p>For <code>armv7</code>:
  316. </p>
  317. <p><code>+fp</code>: Enables VFPv3 instructions with 16 double-word registers.
  318. <code>+nofp</code>: Disables all FPU instructions.
  319. </p>
  320. <p>For <code>armv7-a</code>:
  321. </p>
  322. <p><code>+fp</code>: Enables VFPv3 instructions with 16 double-word registers.
  323. <code>+vfpv3-d16</code>: Alias for <code>+fp</code>.
  324. <code>+vfpv3</code>: Enables VFPv3 instructions with 32 double-word registers.
  325. <code>+vfpv3-d16-fp16</code>: Enables VFPv3 with half precision floating-point
  326. conversion instructions and 16 double-word registers.
  327. <code>+vfpv3-fp16</code>: Enables VFPv3 with half precision floating-point conversion
  328. instructions and 32 double-word registers.
  329. <code>+vfpv4-d16</code>: Enables VFPv4 instructions with 16 double-word registers.
  330. <code>+vfpv4</code>: Enables VFPv4 instructions with 32 double-word registers.
  331. <code>+simd</code>: Enables VFPv3 and NEONv1 instructions with 32 double-word
  332. registers.
  333. <code>+neon</code>: Alias for <code>+simd</code>.
  334. <code>+neon-vfpv3</code>: Alias for <code>+simd</code>.
  335. <code>+neon-fp16</code>: Enables VFPv3, half precision floating-point conversion and
  336. NEONv1 instructions with 32 double-word registers.
  337. <code>+neon-vfpv4</code>: Enables VFPv4 and NEONv1 with Fused-MAC instructions and 32
  338. double-word registers.
  339. <code>+mp</code>: Enables Multiprocessing Extensions.
  340. <code>+sec</code>: Enables Security Extensions.
  341. <code>+nofp</code>: Disables all FPU and NEON instructions.
  342. <code>+nosimd</code>: Disables all NEON instructions.
  343. </p>
  344. <p>For <code>armv7ve</code>:
  345. </p>
  346. <p><code>+fp</code>: Enables VFPv4 instructions with 16 double-word registers.
  347. <code>+vfpv4-d16</code>: Alias for <code>+fp</code>.
  348. <code>+vfpv3-d16</code>: Enables VFPv3 instructions with 16 double-word registers.
  349. <code>+vfpv3</code>: Enables VFPv3 instructions with 32 double-word registers.
  350. <code>+vfpv3-d16-fp16</code>: Enables VFPv3 with half precision floating-point
  351. conversion instructions and 16 double-word registers.
  352. <code>+vfpv3-fp16</code>: Enables VFPv3 with half precision floating-point conversion
  353. instructions and 32 double-word registers.
  354. <code>+vfpv4</code>: Enables VFPv4 instructions with 32 double-word registers.
  355. <code>+simd</code>: Enables VFPv4 and NEONv1 with Fused-MAC instructions and 32
  356. double-word registers.
  357. <code>+neon-vfpv4</code>: Alias for <code>+simd</code>.
  358. <code>+neon</code>: Enables VFPv3 and NEONv1 instructions with 32 double-word
  359. registers.
  360. <code>+neon-vfpv3</code>: Alias for <code>+neon</code>.
  361. <code>+neon-fp16</code>: Enables VFPv3, half precision floating-point conversion and
  362. NEONv1 instructions with 32 double-word registers.
  363. double-word registers.
  364. <code>+nofp</code>: Disables all FPU and NEON instructions.
  365. <code>+nosimd</code>: Disables all NEON instructions.
  366. </p>
  367. <p>For <code>armv7-r</code>:
  368. </p>
  369. <p><code>+fp.sp</code>: Enables single-precision only VFPv3 instructions with 16
  370. double-word registers.
  371. <code>+vfpv3xd</code>: Alias for <code>+fp.sp</code>.
  372. <code>+fp</code>: Enables VFPv3 instructions with 16 double-word registers.
  373. <code>+vfpv3-d16</code>: Alias for <code>+fp</code>.
  374. <code>+vfpv3xd-fp16</code>: Enables single-precision only VFPv3 and half
  375. floating-point conversion instructions with 16 double-word registers.
  376. <code>+vfpv3-d16-fp16</code>: Enables VFPv3 and half precision floating-point
  377. conversion instructions with 16 double-word registers.
  378. <code>+idiv</code>: Enables integer division instructions in ARM mode.
  379. <code>+nofp</code>: Disables all FPU instructions.
  380. </p>
  381. <p>For <code>armv7e-m</code>:
  382. </p>
  383. <p><code>+fp</code>: Enables single-precision only VFPv4 instructions with 16
  384. double-word registers.
  385. <code>+vfpvf4-sp-d16</code>: Alias for <code>+fp</code>.
  386. <code>+fpv5</code>: Enables single-precision only VFPv5 instructions with 16
  387. double-word registers.
  388. <code>+fp.dp</code>: Enables VFPv5 instructions with 16 double-word registers.
  389. <code>+fpv5-d16&quot;</code>: Alias for <code>+fp.dp</code>.
  390. <code>+nofp</code>: Disables all FPU instructions.
  391. </p>
  392. <p>For <code>armv8-m.main</code>:
  393. </p>
  394. <p><code>+dsp</code>: Enables DSP Extension.
  395. <code>+fp</code>: Enables single-precision only VFPv5 instructions with 16
  396. double-word registers.
  397. <code>+fp.dp</code>: Enables VFPv5 instructions with 16 double-word registers.
  398. <code>+cdecp0</code> (CDE extensions for v8-m architecture with coprocessor 0),
  399. <code>+cdecp1</code> (CDE extensions for v8-m architecture with coprocessor 1),
  400. <code>+cdecp2</code> (CDE extensions for v8-m architecture with coprocessor 2),
  401. <code>+cdecp3</code> (CDE extensions for v8-m architecture with coprocessor 3),
  402. <code>+cdecp4</code> (CDE extensions for v8-m architecture with coprocessor 4),
  403. <code>+cdecp5</code> (CDE extensions for v8-m architecture with coprocessor 5),
  404. <code>+cdecp6</code> (CDE extensions for v8-m architecture with coprocessor 6),
  405. <code>+cdecp7</code> (CDE extensions for v8-m architecture with coprocessor 7),
  406. <code>+nofp</code>: Disables all FPU instructions.
  407. <code>+nodsp</code>: Disables DSP Extension.
  408. </p>
  409. <p>For <code>armv8.1-m.main</code>:
  410. </p>
  411. <p><code>+dsp</code>: Enables DSP Extension.
  412. <code>+fp</code>: Enables single and half precision scalar Floating Point Extensions
  413. for Armv8.1-M Mainline with 16 double-word registers.
  414. <code>+fp.dp</code>: Enables double precision scalar Floating Point Extensions for
  415. Armv8.1-M Mainline, implies <code>+fp</code>.
  416. <code>+mve</code>: Enables integer only M-profile Vector Extension for
  417. Armv8.1-M Mainline, implies <code>+dsp</code>.
  418. <code>+mve.fp</code>: Enables Floating Point M-profile Vector Extension for
  419. Armv8.1-M Mainline, implies <code>+mve</code> and <code>+fp</code>.
  420. <code>+nofp</code>: Disables all FPU instructions.
  421. <code>+nodsp</code>: Disables DSP Extension.
  422. <code>+nomve</code>: Disables all M-profile Vector Extensions.
  423. </p>
  424. <p>For <code>armv8-a</code>:
  425. </p>
  426. <p><code>+crc</code>: Enables CRC32 Extension.
  427. <code>+simd</code>: Enables VFP and NEON for Armv8-A.
  428. <code>+crypto</code>: Enables Cryptography Extensions for Armv8-A, implies
  429. <code>+simd</code>.
  430. <code>+sb</code>: Enables Speculation Barrier Instruction for Armv8-A.
  431. <code>+predres</code>: Enables Execution and Data Prediction Restriction Instruction
  432. for Armv8-A.
  433. <code>+nofp</code>: Disables all FPU, NEON and Cryptography Extensions.
  434. <code>+nocrypto</code>: Disables Cryptography Extensions.
  435. </p>
  436. <p>For <code>armv8.1-a</code>:
  437. </p>
  438. <p><code>+simd</code>: Enables VFP and NEON for Armv8.1-A.
  439. <code>+crypto</code>: Enables Cryptography Extensions for Armv8-A, implies
  440. <code>+simd</code>.
  441. <code>+sb</code>: Enables Speculation Barrier Instruction for Armv8-A.
  442. <code>+predres</code>: Enables Execution and Data Prediction Restriction Instruction
  443. for Armv8-A.
  444. <code>+nofp</code>: Disables all FPU, NEON and Cryptography Extensions.
  445. <code>+nocrypto</code>: Disables Cryptography Extensions.
  446. </p>
  447. <p>For <code>armv8.2-a</code> and <code>armv8.3-a</code>:
  448. </p>
  449. <p><code>+simd</code>: Enables VFP and NEON for Armv8.1-A.
  450. <code>+fp16</code>: Enables FP16 Extension for Armv8.2-A, implies <code>+simd</code>.
  451. <code>+fp16fml</code>: Enables FP16 Floating Point Multiplication Variant Extensions
  452. for Armv8.2-A, implies <code>+fp16</code>.
  453. <code>+crypto</code>: Enables Cryptography Extensions for Armv8-A, implies
  454. <code>+simd</code>.
  455. <code>+dotprod</code>: Enables Dot Product Extensions for Armv8.2-A, implies
  456. <code>+simd</code>.
  457. <code>+sb</code>: Enables Speculation Barrier Instruction for Armv8-A.
  458. <code>+predres</code>: Enables Execution and Data Prediction Restriction Instruction
  459. for Armv8-A.
  460. <code>+nofp</code>: Disables all FPU, NEON, Cryptography and Dot Product Extensions.
  461. <code>+nocrypto</code>: Disables Cryptography Extensions.
  462. </p>
  463. <p>For <code>armv8.4-a</code>:
  464. </p>
  465. <p><code>+simd</code>: Enables VFP and NEON for Armv8.1-A and Dot Product Extensions for
  466. Armv8.2-A.
  467. <code>+fp16</code>: Enables FP16 Floating Point and Floating Point Multiplication
  468. Variant Extensions for Armv8.2-A, implies <code>+simd</code>.
  469. <code>+crypto</code>: Enables Cryptography Extensions for Armv8-A, implies
  470. <code>+simd</code>.
  471. <code>+sb</code>: Enables Speculation Barrier Instruction for Armv8-A.
  472. <code>+predres</code>: Enables Execution and Data Prediction Restriction Instruction
  473. for Armv8-A.
  474. <code>+nofp</code>: Disables all FPU, NEON, Cryptography and Dot Product Extensions.
  475. <code>+nocryptp</code>: Disables Cryptography Extensions.
  476. </p>
  477. <p>For <code>armv8.5-a</code>:
  478. </p>
  479. <p><code>+simd</code>: Enables VFP and NEON for Armv8.1-A and Dot Product Extensions for
  480. Armv8.2-A.
  481. <code>+fp16</code>: Enables FP16 Floating Point and Floating Point Multiplication
  482. Variant Extensions for Armv8.2-A, implies <code>+simd</code>.
  483. <code>+crypto</code>: Enables Cryptography Extensions for Armv8-A, implies
  484. <code>+simd</code>.
  485. <code>+nofp</code>: Disables all FPU, NEON, Cryptography and Dot Product Extensions.
  486. <code>+nocryptp</code>: Disables Cryptography Extensions.
  487. </p>
  488. <a name="index-_002dmfpu_003d-command_002dline-option_002c-ARM"></a>
  489. </dd>
  490. <dt><code>-mfpu=<var>floating-point-format</var></code></dt>
  491. <dd>
  492. <p>This option specifies the floating point format to assemble for. The
  493. assembler will issue an error message if an attempt is made to assemble
  494. an instruction which will not execute on the target floating point unit.
  495. The following format options are recognized:
  496. <code>softfpa</code>,
  497. <code>fpe</code>,
  498. <code>fpe2</code>,
  499. <code>fpe3</code>,
  500. <code>fpa</code>,
  501. <code>fpa10</code>,
  502. <code>fpa11</code>,
  503. <code>arm7500fe</code>,
  504. <code>softvfp</code>,
  505. <code>softvfp+vfp</code>,
  506. <code>vfp</code>,
  507. <code>vfp10</code>,
  508. <code>vfp10-r0</code>,
  509. <code>vfp9</code>,
  510. <code>vfpxd</code>,
  511. <code>vfpv2</code>,
  512. <code>vfpv3</code>,
  513. <code>vfpv3-fp16</code>,
  514. <code>vfpv3-d16</code>,
  515. <code>vfpv3-d16-fp16</code>,
  516. <code>vfpv3xd</code>,
  517. <code>vfpv3xd-d16</code>,
  518. <code>vfpv4</code>,
  519. <code>vfpv4-d16</code>,
  520. <code>fpv4-sp-d16</code>,
  521. <code>fpv5-sp-d16</code>,
  522. <code>fpv5-d16</code>,
  523. <code>fp-armv8</code>,
  524. <code>arm1020t</code>,
  525. <code>arm1020e</code>,
  526. <code>arm1136jf-s</code>,
  527. <code>maverick</code>,
  528. <code>neon</code>,
  529. <code>neon-vfpv3</code>,
  530. <code>neon-fp16</code>,
  531. <code>neon-vfpv4</code>,
  532. <code>neon-fp-armv8</code>,
  533. <code>crypto-neon-fp-armv8</code>,
  534. <code>neon-fp-armv8.1</code>
  535. and
  536. <code>crypto-neon-fp-armv8.1</code>.
  537. </p>
  538. <p>In addition to determining which instructions are assembled, this option
  539. also affects the way in which the <code>.double</code> assembler directive behaves
  540. when assembling little-endian code.
  541. </p>
  542. <p>The default is dependent on the processor selected. For Architecture 5 or
  543. later, the default is to assemble for VFP instructions; for earlier
  544. architectures the default is to assemble for FPA instructions.
  545. </p>
  546. <a name="index-_002dmfp16_002dformat_003d-command_002dline-option"></a>
  547. </dd>
  548. <dt><code>-mfp16-format=<var>format</var></code></dt>
  549. <dd><p>This option specifies the half-precision floating point format to use
  550. when assembling floating point numbers emitted by the <code>.float16</code>
  551. directive.
  552. The following format options are recognized:
  553. <code>ieee</code>,
  554. <code>alternative</code>.
  555. If <code>ieee</code> is specified then the IEEE 754-2008 half-precision floating
  556. point format is used, if <code>alternative</code> is specified then the Arm
  557. alternative half-precision format is used. If this option is set on the
  558. command line then the format is fixed and cannot be changed with
  559. the <code>float16_format</code> directive. If this value is not set then
  560. the IEEE 754-2008 format is used until the format is explicitly set with
  561. the <code>float16_format</code> directive.
  562. </p>
  563. <a name="index-_002dmthumb-command_002dline-option_002c-ARM"></a>
  564. </dd>
  565. <dt><code>-mthumb</code></dt>
  566. <dd><p>This option specifies that the assembler should start assembling Thumb
  567. instructions; that is, it should behave as though the file starts with a
  568. <code>.code 16</code> directive.
  569. </p>
  570. <a name="index-_002dmthumb_002dinterwork-command_002dline-option_002c-ARM"></a>
  571. </dd>
  572. <dt><code>-mthumb-interwork</code></dt>
  573. <dd><p>This option specifies that the output generated by the assembler should
  574. be marked as supporting interworking. It also affects the behaviour
  575. of the <code>ADR</code> and <code>ADRL</code> pseudo opcodes.
  576. </p>
  577. <a name="index-_002dmimplicit_002dit-command_002dline-option_002c-ARM"></a>
  578. </dd>
  579. <dt><code>-mimplicit-it=never</code></dt>
  580. <dt><code>-mimplicit-it=always</code></dt>
  581. <dt><code>-mimplicit-it=arm</code></dt>
  582. <dt><code>-mimplicit-it=thumb</code></dt>
  583. <dd><p>The <code>-mimplicit-it</code> option controls the behavior of the assembler when
  584. conditional instructions are not enclosed in IT blocks.
  585. There are four possible behaviors.
  586. If <code>never</code> is specified, such constructs cause a warning in ARM
  587. code and an error in Thumb-2 code.
  588. If <code>always</code> is specified, such constructs are accepted in both
  589. ARM and Thumb-2 code, where the IT instruction is added implicitly.
  590. If <code>arm</code> is specified, such constructs are accepted in ARM code
  591. and cause an error in Thumb-2 code.
  592. If <code>thumb</code> is specified, such constructs cause a warning in ARM
  593. code and are accepted in Thumb-2 code. If you omit this option, the
  594. behavior is equivalent to <code>-mimplicit-it=arm</code>.
  595. </p>
  596. <a name="index-_002dmapcs_002d26-command_002dline-option_002c-ARM"></a>
  597. <a name="index-_002dmapcs_002d32-command_002dline-option_002c-ARM"></a>
  598. </dd>
  599. <dt><code>-mapcs-26</code></dt>
  600. <dt><code>-mapcs-32</code></dt>
  601. <dd><p>These options specify that the output generated by the assembler should
  602. be marked as supporting the indicated version of the Arm Procedure.
  603. Calling Standard.
  604. </p>
  605. <a name="index-_002dmatpcs-command_002dline-option_002c-ARM"></a>
  606. </dd>
  607. <dt><code>-matpcs</code></dt>
  608. <dd><p>This option specifies that the output generated by the assembler should
  609. be marked as supporting the Arm/Thumb Procedure Calling Standard. If
  610. enabled this option will cause the assembler to create an empty
  611. debugging section in the object file called .arm.atpcs. Debuggers can
  612. use this to determine the ABI being used by.
  613. </p>
  614. <a name="index-_002dmapcs_002dfloat-command_002dline-option_002c-ARM"></a>
  615. </dd>
  616. <dt><code>-mapcs-float</code></dt>
  617. <dd><p>This indicates the floating point variant of the APCS should be
  618. used. In this variant floating point arguments are passed in FP
  619. registers rather than integer registers.
  620. </p>
  621. <a name="index-_002dmapcs_002dreentrant-command_002dline-option_002c-ARM"></a>
  622. </dd>
  623. <dt><code>-mapcs-reentrant</code></dt>
  624. <dd><p>This indicates that the reentrant variant of the APCS should be used.
  625. This variant supports position independent code.
  626. </p>
  627. <a name="index-_002dmfloat_002dabi_003d-command_002dline-option_002c-ARM"></a>
  628. </dd>
  629. <dt><code>-mfloat-abi=<var>abi</var></code></dt>
  630. <dd><p>This option specifies that the output generated by the assembler should be
  631. marked as using specified floating point ABI.
  632. The following values are recognized:
  633. <code>soft</code>,
  634. <code>softfp</code>
  635. and
  636. <code>hard</code>.
  637. </p>
  638. <a name="index-_002deabi_003d-command_002dline-option_002c-ARM"></a>
  639. </dd>
  640. <dt><code>-meabi=<var>ver</var></code></dt>
  641. <dd><p>This option specifies which EABI version the produced object files should
  642. conform to.
  643. The following values are recognized:
  644. <code>gnu</code>,
  645. <code>4</code>
  646. and
  647. <code>5</code>.
  648. </p>
  649. <a name="index-_002dEB-command_002dline-option_002c-ARM"></a>
  650. </dd>
  651. <dt><code>-EB</code></dt>
  652. <dd><p>This option specifies that the output generated by the assembler should
  653. be marked as being encoded for a big-endian processor.
  654. </p>
  655. <p>Note: If a program is being built for a system with big-endian data
  656. and little-endian instructions then it should be assembled with the
  657. <samp>-EB</samp> option, (all of it, code and data) and then linked with
  658. the <samp>--be8</samp> option. This will reverse the endianness of the
  659. instructions back to little-endian, but leave the data as big-endian.
  660. </p>
  661. <a name="index-_002dEL-command_002dline-option_002c-ARM"></a>
  662. </dd>
  663. <dt><code>-EL</code></dt>
  664. <dd><p>This option specifies that the output generated by the assembler should
  665. be marked as being encoded for a little-endian processor.
  666. </p>
  667. <a name="index-_002dk-command_002dline-option_002c-ARM"></a>
  668. <a name="index-PIC-code-generation-for-ARM"></a>
  669. </dd>
  670. <dt><code>-k</code></dt>
  671. <dd><p>This option specifies that the output of the assembler should be marked
  672. as position-independent code (PIC).
  673. </p>
  674. <a name="index-_002d_002dfix_002dv4bx-command_002dline-option_002c-ARM"></a>
  675. </dd>
  676. <dt><code>--fix-v4bx</code></dt>
  677. <dd><p>Allow <code>BX</code> instructions in ARMv4 code. This is intended for use with
  678. the linker option of the same name.
  679. </p>
  680. <a name="index-_002dmwarn_002ddeprecated-command_002dline-option_002c-ARM"></a>
  681. </dd>
  682. <dt><code>-mwarn-deprecated</code></dt>
  683. <dt><code>-mno-warn-deprecated</code></dt>
  684. <dd><p>Enable or disable warnings about using deprecated options or
  685. features. The default is to warn.
  686. </p>
  687. <a name="index-_002dmccs-command_002dline-option_002c-ARM"></a>
  688. </dd>
  689. <dt><code>-mccs</code></dt>
  690. <dd><p>Turns on CodeComposer Studio assembly syntax compatibility mode.
  691. </p>
  692. <a name="index-_002dmwarn_002dsyms-command_002dline-option_002c-ARM"></a>
  693. </dd>
  694. <dt><code>-mwarn-syms</code></dt>
  695. <dt><code>-mno-warn-syms</code></dt>
  696. <dd><p>Enable or disable warnings about symbols that match the names of ARM
  697. instructions. The default is to warn.
  698. </p>
  699. </dd>
  700. </dl>
  701. <hr>
  702. <div class="header">
  703. <p>
  704. Next: <a href="ARM-Syntax.html#ARM-Syntax" accesskey="n" rel="next">ARM Syntax</a>, Up: <a href="ARM_002dDependent.html#ARM_002dDependent" accesskey="u" rel="up">ARM-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>
  705. </div>
  706. </body>
  707. </html>