PowerPC_002dOpts.html 8.7 KB

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