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

302 lines
8.8KB

  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>PowerPC-Opts (Using as)</title>
  16. <meta name="description" content="PowerPC-Opts (Using as)">
  17. <meta name="keywords" content="PowerPC-Opts (Using as)">
  18. <meta name="resource-type" content="document">
  19. <meta name="distribution" content="global">
  20. <meta name="Generator" content="makeinfo">
  21. <link href="index.html#Top" rel="start" title="Top">
  22. <link href="AS-Index.html#AS-Index" rel="index" title="AS Index">
  23. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  24. <link href="PPC_002dDependent.html#PPC_002dDependent" rel="up" title="PPC-Dependent">
  25. <link href="PowerPC_002dPseudo.html#PowerPC_002dPseudo" rel="next" title="PowerPC-Pseudo">
  26. <link href="PPC_002dDependent.html#PPC_002dDependent" rel="prev" title="PPC-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="PowerPC_002dOpts"></a>
  57. <div class="header">
  58. <p>
  59. Next: <a href="PowerPC_002dPseudo.html#PowerPC_002dPseudo" accesskey="n" rel="next">PowerPC-Pseudo</a>, Up: <a href="PPC_002dDependent.html#PPC_002dDependent" accesskey="u" rel="up">PPC-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-19"></a>
  63. <h4 class="subsection">9.36.1 Options</h4>
  64. <a name="index-options-for-PowerPC"></a>
  65. <a name="index-PowerPC-options"></a>
  66. <a name="index-architectures_002c-PowerPC"></a>
  67. <a name="index-PowerPC-architectures"></a>
  68. <p>The PowerPC chip family includes several successive levels, using the same
  69. core instruction set, but including a few additional instructions at
  70. each level. There are exceptions to this however. For details on what
  71. instructions each variant supports, please see the chip&rsquo;s architecture
  72. reference manual.
  73. </p>
  74. <p>The following table lists all available PowerPC options.
  75. </p>
  76. <dl compact="compact">
  77. <dt><code>-a32</code></dt>
  78. <dd><p>Generate ELF32 or XCOFF32.
  79. </p>
  80. </dd>
  81. <dt><code>-a64</code></dt>
  82. <dd><p>Generate ELF64 or XCOFF64.
  83. </p>
  84. </dd>
  85. <dt><code>-K PIC</code></dt>
  86. <dd><p>Set EF_PPC_RELOCATABLE_LIB in ELF flags.
  87. </p>
  88. </dd>
  89. <dt><code>-mpwrx | -mpwr2</code></dt>
  90. <dd><p>Generate code for POWER/2 (RIOS2).
  91. </p>
  92. </dd>
  93. <dt><code>-mpwr</code></dt>
  94. <dd><p>Generate code for POWER (RIOS1)
  95. </p>
  96. </dd>
  97. <dt><code>-m601</code></dt>
  98. <dd><p>Generate code for PowerPC 601.
  99. </p>
  100. </dd>
  101. <dt><code>-mppc, -mppc32, -m603, -m604</code></dt>
  102. <dd><p>Generate code for PowerPC 603/604.
  103. </p>
  104. </dd>
  105. <dt><code>-m403, -m405</code></dt>
  106. <dd><p>Generate code for PowerPC 403/405.
  107. </p>
  108. </dd>
  109. <dt><code>-m440</code></dt>
  110. <dd><p>Generate code for PowerPC 440. BookE and some 405 instructions.
  111. </p>
  112. </dd>
  113. <dt><code>-m464</code></dt>
  114. <dd><p>Generate code for PowerPC 464.
  115. </p>
  116. </dd>
  117. <dt><code>-m476</code></dt>
  118. <dd><p>Generate code for PowerPC 476.
  119. </p>
  120. </dd>
  121. <dt><code>-m7400, -m7410, -m7450, -m7455</code></dt>
  122. <dd><p>Generate code for PowerPC 7400/7410/7450/7455.
  123. </p>
  124. </dd>
  125. <dt><code>-m750cl, -mgekko, -mbroadway</code></dt>
  126. <dd><p>Generate code for PowerPC 750CL/Gekko/Broadway.
  127. </p>
  128. </dd>
  129. <dt><code>-m821, -m850, -m860</code></dt>
  130. <dd><p>Generate code for PowerPC 821/850/860.
  131. </p>
  132. </dd>
  133. <dt><code>-mppc64, -m620</code></dt>
  134. <dd><p>Generate code for PowerPC 620/625/630.
  135. </p>
  136. </dd>
  137. <dt><code>-me500, -me500x2</code></dt>
  138. <dd><p>Generate code for Motorola e500 core complex.
  139. </p>
  140. </dd>
  141. <dt><code>-me500mc</code></dt>
  142. <dd><p>Generate code for Freescale e500mc core complex.
  143. </p>
  144. </dd>
  145. <dt><code>-me500mc64</code></dt>
  146. <dd><p>Generate code for Freescale e500mc64 core complex.
  147. </p>
  148. </dd>
  149. <dt><code>-me5500</code></dt>
  150. <dd><p>Generate code for Freescale e5500 core complex.
  151. </p>
  152. </dd>
  153. <dt><code>-me6500</code></dt>
  154. <dd><p>Generate code for Freescale e6500 core complex.
  155. </p>
  156. </dd>
  157. <dt><code>-mspe</code></dt>
  158. <dd><p>Generate code for Motorola SPE instructions.
  159. </p>
  160. </dd>
  161. <dt><code>-mspe2</code></dt>
  162. <dd><p>Generate code for Freescale SPE2 instructions.
  163. </p>
  164. </dd>
  165. <dt><code>-mtitan</code></dt>
  166. <dd><p>Generate code for AppliedMicro Titan core complex.
  167. </p>
  168. </dd>
  169. <dt><code>-mppc64bridge</code></dt>
  170. <dd><p>Generate code for PowerPC 64, including bridge insns.
  171. </p>
  172. </dd>
  173. <dt><code>-mbooke</code></dt>
  174. <dd><p>Generate code for 32-bit BookE.
  175. </p>
  176. </dd>
  177. <dt><code>-ma2</code></dt>
  178. <dd><p>Generate code for A2 architecture.
  179. </p>
  180. </dd>
  181. <dt><code>-me300</code></dt>
  182. <dd><p>Generate code for PowerPC e300 family.
  183. </p>
  184. </dd>
  185. <dt><code>-maltivec</code></dt>
  186. <dd><p>Generate code for processors with AltiVec instructions.
  187. </p>
  188. </dd>
  189. <dt><code>-mvle</code></dt>
  190. <dd><p>Generate code for Freescale PowerPC VLE instructions.
  191. </p>
  192. </dd>
  193. <dt><code>-mvsx</code></dt>
  194. <dd><p>Generate code for processors with Vector-Scalar (VSX) instructions.
  195. </p>
  196. </dd>
  197. <dt><code>-mhtm</code></dt>
  198. <dd><p>Generate code for processors with Hardware Transactional Memory instructions.
  199. </p>
  200. </dd>
  201. <dt><code>-mpower4, -mpwr4</code></dt>
  202. <dd><p>Generate code for Power4 architecture.
  203. </p>
  204. </dd>
  205. <dt><code>-mpower5, -mpwr5, -mpwr5x</code></dt>
  206. <dd><p>Generate code for Power5 architecture.
  207. </p>
  208. </dd>
  209. <dt><code>-mpower6, -mpwr6</code></dt>
  210. <dd><p>Generate code for Power6 architecture.
  211. </p>
  212. </dd>
  213. <dt><code>-mpower7, -mpwr7</code></dt>
  214. <dd><p>Generate code for Power7 architecture.
  215. </p>
  216. </dd>
  217. <dt><code>-mpower8, -mpwr8</code></dt>
  218. <dd><p>Generate code for Power8 architecture.
  219. </p>
  220. </dd>
  221. <dt><code>-mpower9, -mpwr9</code></dt>
  222. <dd><p>Generate code for Power9 architecture.
  223. </p>
  224. </dd>
  225. <dt><code>-mpower10, -mpwr10</code></dt>
  226. <dd><p>Generate code for Power10 architecture.
  227. </p>
  228. </dd>
  229. <dt><code>-mcell</code></dt>
  230. <dt><code>-mcell</code></dt>
  231. <dd><p>Generate code for Cell Broadband Engine architecture.
  232. </p>
  233. </dd>
  234. <dt><code>-mcom</code></dt>
  235. <dd><p>Generate code Power/PowerPC common instructions.
  236. </p>
  237. </dd>
  238. <dt><code>-many</code></dt>
  239. <dd><p>Generate code for any architecture (PWR/PWRX/PPC).
  240. </p>
  241. </dd>
  242. <dt><code>-mregnames</code></dt>
  243. <dd><p>Allow symbolic names for registers.
  244. </p>
  245. </dd>
  246. <dt><code>-mno-regnames</code></dt>
  247. <dd><p>Do not allow symbolic names for registers.
  248. </p>
  249. </dd>
  250. <dt><code>-mrelocatable</code></dt>
  251. <dd><p>Support for GCC&rsquo;s -mrelocatable option.
  252. </p>
  253. </dd>
  254. <dt><code>-mrelocatable-lib</code></dt>
  255. <dd><p>Support for GCC&rsquo;s -mrelocatable-lib option.
  256. </p>
  257. </dd>
  258. <dt><code>-memb</code></dt>
  259. <dd><p>Set PPC_EMB bit in ELF flags.
  260. </p>
  261. </dd>
  262. <dt><code>-mlittle, -mlittle-endian, -le</code></dt>
  263. <dd><p>Generate code for a little endian machine.
  264. </p>
  265. </dd>
  266. <dt><code>-mbig, -mbig-endian, -be</code></dt>
  267. <dd><p>Generate code for a big endian machine.
  268. </p>
  269. </dd>
  270. <dt><code>-msolaris</code></dt>
  271. <dd><p>Generate code for Solaris.
  272. </p>
  273. </dd>
  274. <dt><code>-mno-solaris</code></dt>
  275. <dd><p>Do not generate code for Solaris.
  276. </p>
  277. </dd>
  278. <dt><code>-nops=<var>count</var></code></dt>
  279. <dd><p>If an alignment directive inserts more than <var>count</var> nops, put a
  280. branch at the beginning to skip execution of the nops.
  281. </p></dd>
  282. </dl>
  283. <hr>
  284. <div class="header">
  285. <p>
  286. Next: <a href="PowerPC_002dPseudo.html#PowerPC_002dPseudo" accesskey="n" rel="next">PowerPC-Pseudo</a>, Up: <a href="PPC_002dDependent.html#PPC_002dDependent" accesskey="u" rel="up">PPC-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>
  287. </div>
  288. </body>
  289. </html>