Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

238 lines
12KB

  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>Sparc-Opts (Using as)</title>
  16. <meta name="description" content="Sparc-Opts (Using as)">
  17. <meta name="keywords" content="Sparc-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="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.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="Sparc_002dOpts"></a>
  57. <div class="header">
  58. <p>
  59. 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>
  60. </div>
  61. <hr>
  62. <a name="Options-24"></a>
  63. <h4 class="subsection">9.44.1 Options</h4>
  64. <a name="index-options-for-SPARC"></a>
  65. <a name="index-SPARC-options"></a>
  66. <a name="index-architectures_002c-SPARC"></a>
  67. <a name="index-SPARC-architectures"></a>
  68. <p>The SPARC chip family includes several successive versions, using the same
  69. core instruction set, but including a few additional instructions at
  70. each version. 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>By default, <code>as</code> assumes the core instruction set (SPARC
  75. v6), but &ldquo;bumps&rdquo; the architecture level as needed: it switches to
  76. successively higher architectures as it encounters instructions that
  77. only exist in the higher levels.
  78. </p>
  79. <p>If not configured for SPARC v9 (<code>sparc64-*-*</code>) GAS will not bump
  80. past sparclite by default, an option must be passed to enable the
  81. v9 instructions.
  82. </p>
  83. <p>GAS treats sparclite as being compatible with v8, unless an architecture
  84. is explicitly requested. SPARC v9 is always incompatible with sparclite.
  85. </p>
  86. <dl compact="compact">
  87. <dd><a name="index-_002dAv6"></a>
  88. <a name="index-_002dAv7"></a>
  89. <a name="index-_002dAv8"></a>
  90. <a name="index-_002dAleon"></a>
  91. <a name="index-_002dAsparclet"></a>
  92. <a name="index-_002dAsparclite"></a>
  93. <a name="index-_002dAv9"></a>
  94. <a name="index-_002dAv9a"></a>
  95. <a name="index-_002dAv9b"></a>
  96. <a name="index-_002dAv9c"></a>
  97. <a name="index-_002dAv9d"></a>
  98. <a name="index-_002dAv9e"></a>
  99. <a name="index-_002dAv9v"></a>
  100. <a name="index-_002dAv9m"></a>
  101. <a name="index-_002dAsparc"></a>
  102. <a name="index-_002dAsparcvis"></a>
  103. <a name="index-_002dAsparcvis2"></a>
  104. <a name="index-_002dAsparcfmaf"></a>
  105. <a name="index-_002dAsparcima"></a>
  106. <a name="index-_002dAsparcvis3"></a>
  107. <a name="index-_002dAsparcvis3r"></a>
  108. </dd>
  109. <dt><code>-Av6 | -Av7 | -Av8 | -Aleon | -Asparclet | -Asparclite</code></dt>
  110. <dt><code>-Av8plus | -Av8plusa | -Av8plusb | -Av8plusc | -Av8plusd |</code></dt>
  111. <dt><code>-Av8plusv | -Av8plusm | -Av8plusm8</code></dt>
  112. <dt><code>-Av9 | -Av9a | -Av9b | -Av9c | -Av9d | -Av9e | -Av9v | -Av9m | -Av9m8</code></dt>
  113. <dt><code>-Asparc | -Asparcvis | -Asparcvis2 | -Asparcfmaf | -Asparcima</code></dt>
  114. <dt><code>-Asparcvis3 | -Asparcvis3r | -Asparc5 | -Asparc6</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>-Av8plusm8</samp>&rsquo; and &lsquo;<samp>-Av9m8</samp>&rsquo; enable the instructions introduced
  154. in the Oracle SPARC Architecture 2017 and the M8 processor, as
  155. well as the instructions enabled by &lsquo;<samp>-Av8plusm</samp>&rsquo; and &lsquo;<samp>-Av9m</samp>&rsquo;.
  156. </p>
  157. <p>&lsquo;<samp>-Asparc</samp>&rsquo; specifies a v9 environment. It is equivalent to
  158. &lsquo;<samp>-Av9</samp>&rsquo; if the word size is 64-bit, and &lsquo;<samp>-Av8plus</samp>&rsquo; otherwise.
  159. </p>
  160. <p>&lsquo;<samp>-Asparcvis</samp>&rsquo; specifies a v9a environment. It is equivalent to
  161. &lsquo;<samp>-Av9a</samp>&rsquo; if the word size is 64-bit, and &lsquo;<samp>-Av8plusa</samp>&rsquo; otherwise.
  162. </p>
  163. <p>&lsquo;<samp>-Asparcvis2</samp>&rsquo; specifies a v9b environment. It is equivalent to
  164. &lsquo;<samp>-Av9b</samp>&rsquo; if the word size is 64-bit, and &lsquo;<samp>-Av8plusb</samp>&rsquo; otherwise.
  165. </p>
  166. <p>&lsquo;<samp>-Asparcfmaf</samp>&rsquo; specifies a v9b environment with the floating point
  167. fused multiply-add instructions enabled.
  168. </p>
  169. <p>&lsquo;<samp>-Asparcima</samp>&rsquo; specifies a v9b environment with the integer
  170. multiply-add instructions enabled.
  171. </p>
  172. <p>&lsquo;<samp>-Asparcvis3</samp>&rsquo; specifies a v9b environment with the VIS 3.0,
  173. HPC , and floating point fused multiply-add instructions enabled.
  174. </p>
  175. <p>&lsquo;<samp>-Asparcvis3r</samp>&rsquo; specifies a v9b environment with the VIS 3.0, HPC,
  176. and floating point unfused multiply-add instructions enabled.
  177. </p>
  178. <p>&lsquo;<samp>-Asparc5</samp>&rsquo; is equivalent to &lsquo;<samp>-Av9m</samp>&rsquo;.
  179. </p>
  180. <p>&lsquo;<samp>-Asparc6</samp>&rsquo; is equivalent to &lsquo;<samp>-Av9m8</samp>&rsquo;.
  181. </p>
  182. </dd>
  183. <dt><code>-xarch=v8plus | -xarch=v8plusa | -xarch=v8plusb | -xarch=v8plusc</code></dt>
  184. <dt><code>-xarch=v8plusd | -xarch=v8plusv | -xarch=v8plusm |</code></dt>
  185. <dt><code>-xarch=v8plusm8 | -xarch=v9 | -xarch=v9a | -xarch=v9b</code></dt>
  186. <dt><code>-xarch=v9c | -xarch=v9d | -xarch=v9e | -xarch=v9v</code></dt>
  187. <dt><code>-xarch=v9m | -xarch=v9m8</code></dt>
  188. <dt><code>-xarch=sparc | -xarch=sparcvis | -xarch=sparcvis2</code></dt>
  189. <dt><code>-xarch=sparcfmaf | -xarch=sparcima | -xarch=sparcvis3</code></dt>
  190. <dt><code>-xarch=sparcvis3r | -xarch=sparc5 | -xarch=sparc6</code></dt>
  191. <dd><p>For compatibility with the SunOS v9 assembler. These options are
  192. equivalent to -Av8plus, -Av8plusa, -Av8plusb, -Av8plusc, -Av8plusd,
  193. -Av8plusv, -Av8plusm, -Av8plusm8, -Av9, -Av9a, -Av9b, -Av9c, -Av9d,
  194. -Av9e, -Av9v, -Av9m, -Av9m8, -Asparc, -Asparcvis, -Asparcvis2,
  195. -Asparcfmaf, -Asparcima, -Asparcvis3, -Asparcvis3r, -Asparc5 and
  196. -Asparc6 respectively.
  197. </p>
  198. </dd>
  199. <dt><code>-bump</code></dt>
  200. <dd><p>Warn whenever it is necessary to switch to another level.
  201. If an architecture level is explicitly requested, GAS will not issue
  202. warnings until that level is reached, and will then bump the level
  203. as required (except between incompatible levels).
  204. </p>
  205. </dd>
  206. <dt><code>-32 | -64</code></dt>
  207. <dd><p>Select the word size, either 32 bits or 64 bits.
  208. These options are only available with the ELF object file format,
  209. and require that the necessary BFD support has been included.
  210. </p>
  211. </dd>
  212. <dt><code>--dcti-couples-detect</code></dt>
  213. <dd><p>Warn if a DCTI (delayed control transfer instruction) couple is found
  214. when generating code for a variant of the SPARC architecture in which
  215. the execution of the couple is unpredictable, or very slow. This is
  216. disabled by default.
  217. </p></dd>
  218. </dl>
  219. <hr>
  220. <div class="header">
  221. <p>
  222. 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>
  223. </div>
  224. </body>
  225. </html>