Sparc_002dOpts.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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: Sparc-Opts</title>
  15. <meta name="description" content="Using as: Sparc-Opts">
  16. <meta name="keywords" content="Using as: Sparc-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="Sparc_002dDependent.html#Sparc_002dDependent" rel="up" title="Sparc-Dependent">
  25. <link href="Sparc_002dAligned_002dData.html#Sparc_002dAligned_002dData" rel="next" title="Sparc-Aligned-Data">
  26. <link href="Sparc_002dDependent.html#Sparc_002dDependent" rel="prev" title="Sparc-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="Sparc_002dOpts"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="Sparc_002dAligned_002dData.html#Sparc_002dAligned_002dData" accesskey="n" rel="next">Sparc-Aligned-Data</a>, Up: <a href="Sparc_002dDependent.html#Sparc_002dDependent" accesskey="u" rel="up">Sparc-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-24"></a>
  64. <h4 class="subsection">9.43.1 Options</h4>
  65. <a name="index-options-for-SPARC"></a>
  66. <a name="index-SPARC-options"></a>
  67. <a name="index-architectures_002c-SPARC"></a>
  68. <a name="index-SPARC-architectures"></a>
  69. <p>The SPARC chip family includes several successive versions, using the same
  70. core instruction set, but including a few additional instructions at
  71. each version. 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>By default, <code>as</code> assumes the core instruction set (SPARC
  76. v6), but &ldquo;bumps&rdquo; the architecture level as needed: it switches to
  77. successively higher architectures as it encounters instructions that
  78. only exist in the higher levels.
  79. </p>
  80. <p>If not configured for SPARC v9 (<code>sparc64-*-*</code>) GAS will not bump
  81. past sparclite by default, an option must be passed to enable the
  82. v9 instructions.
  83. </p>
  84. <p>GAS treats sparclite as being compatible with v8, unless an architecture
  85. is explicitly requested. SPARC v9 is always incompatible with sparclite.
  86. </p>
  87. <dl compact="compact">
  88. <dd><a name="index-_002dAv6"></a>
  89. <a name="index-_002dAv7"></a>
  90. <a name="index-_002dAv8"></a>
  91. <a name="index-_002dAleon"></a>
  92. <a name="index-_002dAsparclet"></a>
  93. <a name="index-_002dAsparclite"></a>
  94. <a name="index-_002dAv9"></a>
  95. <a name="index-_002dAv9a"></a>
  96. <a name="index-_002dAv9b"></a>
  97. <a name="index-_002dAv9c"></a>
  98. <a name="index-_002dAv9d"></a>
  99. <a name="index-_002dAv9e"></a>
  100. <a name="index-_002dAv9v"></a>
  101. <a name="index-_002dAv9m"></a>
  102. <a name="index-_002dAsparc"></a>
  103. <a name="index-_002dAsparcvis"></a>
  104. <a name="index-_002dAsparcvis2"></a>
  105. <a name="index-_002dAsparcfmaf"></a>
  106. <a name="index-_002dAsparcima"></a>
  107. <a name="index-_002dAsparcvis3"></a>
  108. <a name="index-_002dAsparcvis3r"></a>
  109. </dd>
  110. <dt><code>-Av6 | -Av7 | -Av8 | -Aleon | -Asparclet | -Asparclite</code></dt>
  111. <dt><code>-Av8plus | -Av8plusa | -Av8plusb | -Av8plusc | -Av8plusd | -Av8plusv | -Av8plusm</code></dt>
  112. <dt><code>-Av9 | -Av9a | -Av9b | -Av9c | -Av9d | -Av9e | -Av9v | -Av9m</code></dt>
  113. <dt><code>-Asparc | -Asparcvis | -Asparcvis2 | -Asparcfmaf | -Asparcima</code></dt>
  114. <dt><code>-Asparcvis3 | -Asparcvis3r | -Asparc5</code></dt>
  115. <dd><p>Use one of the &lsquo;<samp>-A</samp>&rsquo; options to select one of the SPARC
  116. architectures explicitly. If you select an architecture explicitly,
  117. <code>as</code> reports a fatal error if it encounters an instruction
  118. or feature requiring an incompatible or higher level.
  119. </p>
  120. <p>&lsquo;<samp>-Av8plus</samp>&rsquo;, &lsquo;<samp>-Av8plusa</samp>&rsquo;, &lsquo;<samp>-Av8plusb</samp>&rsquo;, &lsquo;<samp>-Av8plusc</samp>&rsquo;,
  121. &lsquo;<samp>-Av8plusd</samp>&rsquo;, and &lsquo;<samp>-Av8plusv</samp>&rsquo; select a 32 bit environment.
  122. </p>
  123. <p>&lsquo;<samp>-Av9</samp>&rsquo;, &lsquo;<samp>-Av9a</samp>&rsquo;, &lsquo;<samp>-Av9b</samp>&rsquo;, &lsquo;<samp>-Av9c</samp>&rsquo;, &lsquo;<samp>-Av9d</samp>&rsquo;,
  124. &lsquo;<samp>-Av9e</samp>&rsquo;, &lsquo;<samp>-Av9v</samp>&rsquo; and &lsquo;<samp>-Av9m</samp>&rsquo; select a 64 bit
  125. environment and are not available unless GAS is explicitly configured
  126. with 64 bit environment support.
  127. </p>
  128. <p>&lsquo;<samp>-Av8plusa</samp>&rsquo; and &lsquo;<samp>-Av9a</samp>&rsquo; enable the SPARC V9 instruction set with
  129. UltraSPARC VIS 1.0 extensions.
  130. </p>
  131. <p>&lsquo;<samp>-Av8plusb</samp>&rsquo; and &lsquo;<samp>-Av9b</samp>&rsquo; enable the UltraSPARC VIS 2.0 instructions,
  132. as well as the instructions enabled by &lsquo;<samp>-Av8plusa</samp>&rsquo; and &lsquo;<samp>-Av9a</samp>&rsquo;.
  133. </p>
  134. <p>&lsquo;<samp>-Av8plusc</samp>&rsquo; and &lsquo;<samp>-Av9c</samp>&rsquo; enable the UltraSPARC Niagara instructions,
  135. as well as the instructions enabled by &lsquo;<samp>-Av8plusb</samp>&rsquo; and &lsquo;<samp>-Av9b</samp>&rsquo;.
  136. </p>
  137. <p>&lsquo;<samp>-Av8plusd</samp>&rsquo; and &lsquo;<samp>-Av9d</samp>&rsquo; enable the floating point fused
  138. multiply-add, VIS 3.0, and HPC extension instructions, as well as the
  139. instructions enabled by &lsquo;<samp>-Av8plusc</samp>&rsquo; and &lsquo;<samp>-Av9c</samp>&rsquo;.
  140. </p>
  141. <p>&lsquo;<samp>-Av8pluse</samp>&rsquo; and &lsquo;<samp>-Av9e</samp>&rsquo; enable the cryptographic
  142. instructions, as well as the instructions enabled by &lsquo;<samp>-Av8plusd</samp>&rsquo;
  143. and &lsquo;<samp>-Av9d</samp>&rsquo;.
  144. </p>
  145. <p>&lsquo;<samp>-Av8plusv</samp>&rsquo; and &lsquo;<samp>-Av9v</samp>&rsquo; enable floating point unfused
  146. multiply-add, and integer multiply-add, as well as the instructions
  147. enabled by &lsquo;<samp>-Av8pluse</samp>&rsquo; and &lsquo;<samp>-Av9e</samp>&rsquo;.
  148. </p>
  149. <p>&lsquo;<samp>-Av8plusm</samp>&rsquo; and &lsquo;<samp>-Av9m</samp>&rsquo; enable the VIS 4.0, subtract extended,
  150. xmpmul, xmontmul and xmontsqr instructions, as well as the instructions
  151. enabled by &lsquo;<samp>-Av8plusv</samp>&rsquo; and &lsquo;<samp>-Av9v</samp>&rsquo;.
  152. </p>
  153. <p>&lsquo;<samp>-Asparc</samp>&rsquo; specifies a v9 environment. It is equivalent to
  154. &lsquo;<samp>-Av9</samp>&rsquo; if the word size is 64-bit, and &lsquo;<samp>-Av8plus</samp>&rsquo; otherwise.
  155. </p>
  156. <p>&lsquo;<samp>-Asparcvis</samp>&rsquo; specifies a v9a environment. It is equivalent to
  157. &lsquo;<samp>-Av9a</samp>&rsquo; if the word size is 64-bit, and &lsquo;<samp>-Av8plusa</samp>&rsquo; otherwise.
  158. </p>
  159. <p>&lsquo;<samp>-Asparcvis2</samp>&rsquo; specifies a v9b environment. It is equivalent to
  160. &lsquo;<samp>-Av9b</samp>&rsquo; if the word size is 64-bit, and &lsquo;<samp>-Av8plusb</samp>&rsquo; otherwise.
  161. </p>
  162. <p>&lsquo;<samp>-Asparcfmaf</samp>&rsquo; specifies a v9b environment with the floating point
  163. fused multiply-add instructions enabled.
  164. </p>
  165. <p>&lsquo;<samp>-Asparcima</samp>&rsquo; specifies a v9b environment with the integer
  166. multiply-add instructions enabled.
  167. </p>
  168. <p>&lsquo;<samp>-Asparcvis3</samp>&rsquo; specifies a v9b environment with the VIS 3.0,
  169. HPC , and floating point fused multiply-add instructions enabled.
  170. </p>
  171. <p>&lsquo;<samp>-Asparcvis3r</samp>&rsquo; specifies a v9b environment with the VIS 3.0, HPC,
  172. and floating point unfused multiply-add instructions enabled.
  173. </p>
  174. <p>&lsquo;<samp>-Asparc5</samp>&rsquo; is equivalent to &lsquo;<samp>-Av9m</samp>&rsquo;.
  175. </p>
  176. </dd>
  177. <dt><code>-xarch=v8plus | -xarch=v8plusa | -xarch=v8plusb | -xarch=v8plusc</code></dt>
  178. <dt><code>-xarch=v8plusd | -xarch=v8plusv | -xarch=v8plusm | -xarch=v9 | -xarch=v9a</code></dt>
  179. <dt><code>-xarch=v9b | -xarch=v9c | -xarch=v9d | -xarch=v9e | -xarch=v9v | -xarch=v9m</code></dt>
  180. <dt><code>-xarch=sparc | -xarch=sparcvis | -xarch=sparcvis2</code></dt>
  181. <dt><code>-xarch=sparcfmaf | -xarch=sparcima | -xarch=sparcvis3</code></dt>
  182. <dt><code>-xarch=sparcvis3r | -xarch=sparc5</code></dt>
  183. <dd><p>For compatibility with the SunOS v9 assembler. These options are
  184. equivalent to -Av8plus, -Av8plusa, -Av8plusb, -Av8plusc, -Av8plusd,
  185. -Av8plusv, -Av8plusm, -Av9, -Av9a, -Av9b, -Av9c, -Av9d, -Av9e, -Av9v, -Av9m,
  186. -Asparc, -Asparcvis, -Asparcvis2, -Asparcfmaf, -Asparcima,
  187. -Asparcvis3, and -Asparcvis3r, respectively.
  188. </p>
  189. </dd>
  190. <dt><code>-bump</code></dt>
  191. <dd><p>Warn whenever it is necessary to switch to another level.
  192. If an architecture level is explicitly requested, GAS will not issue
  193. warnings until that level is reached, and will then bump the level
  194. as required (except between incompatible levels).
  195. </p>
  196. </dd>
  197. <dt><code>-32 | -64</code></dt>
  198. <dd><p>Select the word size, either 32 bits or 64 bits.
  199. These options are only available with the ELF object file format,
  200. and require that the necessary BFD support has been included.
  201. </p>
  202. </dd>
  203. <dt><code>--dcti-couples-detect</code></dt>
  204. <dd><p>Warn if a DCTI (delayed control transfer instruction) couple is found
  205. when generating code for a variant of the SPARC architecture in which
  206. the execution of the couple is unpredictable, or very slow. This is
  207. disabled by default.
  208. </p></dd>
  209. </dl>
  210. <hr>
  211. <div class="header">
  212. <p>
  213. Next: <a href="Sparc_002dAligned_002dData.html#Sparc_002dAligned_002dData" accesskey="n" rel="next">Sparc-Aligned-Data</a>, Up: <a href="Sparc_002dDependent.html#Sparc_002dDependent" accesskey="u" rel="up">Sparc-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>
  214. </div>
  215. </body>
  216. </html>