C_002dSKY-Options.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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 5.1, http://www.gnu.org/software/texinfo/ -->
  13. <head>
  14. <title>Using as: C-SKY Options</title>
  15. <meta name="description" content="Using as: C-SKY Options">
  16. <meta name="keywords" content="Using as: C-SKY Options">
  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="C_002dSKY_002dDependent.html#C_002dSKY_002dDependent" rel="up" title="C-SKY-Dependent">
  25. <link href="C_002dSKY-Syntax.html#C_002dSKY-Syntax" rel="next" title="C-SKY Syntax">
  26. <link href="C_002dSKY_002dDependent.html#C_002dSKY_002dDependent" rel="previous" title="C-SKY-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="C_002dSKY-Options"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="C_002dSKY-Syntax.html#C_002dSKY-Syntax" accesskey="n" rel="next">C-SKY Syntax</a>, Up: <a href="C_002dSKY_002dDependent.html#C_002dSKY_002dDependent" accesskey="u" rel="up">C-SKY-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-7"></a>
  64. <h4 class="subsection">9.10.1 Options</h4>
  65. <a name="index-C_002dSKY-options"></a>
  66. <a name="index-options-for-C_002dSKY"></a>
  67. <dl compact="compact">
  68. <dd>
  69. <a name="index-march-command_002dline-option_002c-C_002dSKY"></a>
  70. </dd>
  71. <dt><code>-march=<var>archname</var></code></dt>
  72. <dd><p>Assemble for architecture <var>archname</var>. The <samp>--help</samp> option
  73. lists valid values for <var>archname</var>.
  74. </p>
  75. <a name="index-mcpu-command_002dline-option_002c-C_002dSKY"></a>
  76. </dd>
  77. <dt><code>-mcpu=<var>cpuname</var></code></dt>
  78. <dd><p>Assemble for architecture <var>cpuname</var>. The <samp>--help</samp> option
  79. lists valid values for <var>cpuname</var>.
  80. </p>
  81. <a name="index-EL-command_002dline-option_002c-C_002dSKY"></a>
  82. <a name="index-mlittle_002dendian-command_002dline-option_002c-C_002dSKY"></a>
  83. </dd>
  84. <dt><code>-EL</code></dt>
  85. <dt><code>-mlittle-endian</code></dt>
  86. <dd><p>Generate little-endian output.
  87. </p>
  88. <a name="index-EB-command_002dline-option_002c-C_002dSKY"></a>
  89. <a name="index-mbig_002dendian-command_002dline-option_002c-C_002dSKY"></a>
  90. </dd>
  91. <dt><code>-EB</code></dt>
  92. <dt><code>-mbig-endian</code></dt>
  93. <dd><p>Generate big-endian output.
  94. </p>
  95. <a name="index-fpic-command_002dline-option_002c-C_002dSKY"></a>
  96. <a name="index-pic-command_002dline-option_002c-C_002dSKY"></a>
  97. </dd>
  98. <dt><code>-fpic</code></dt>
  99. <dt><code>-pic</code></dt>
  100. <dd><p>Generate position-independent code.
  101. </p>
  102. <a name="index-mljump-command_002dline-option_002c-C_002dSKY"></a>
  103. <a name="index-mno_002dljump-command_002dline-option_002c-C_002dSKY"></a>
  104. </dd>
  105. <dt><code>-mljump</code></dt>
  106. <dt><code>-mno-ljump</code></dt>
  107. <dd><p>Enable/disable transformation of the short branch instructions
  108. <code>jbf</code>, <code>jbt</code>, and <code>jbr</code> to <code>jmpi</code>.
  109. This option is for V2 processors only.
  110. It is ignored on CK801 and CK802 targets, which do not support the <code>jmpi</code>
  111. instruction, and is enabled by default for other processors.
  112. </p>
  113. <a name="index-mbranch_002dstub-command_002dline-option_002c-C_002dSKY"></a>
  114. <a name="index-mno_002dbranch_002dstub-command_002dline-option_002c-C_002dSKY"></a>
  115. </dd>
  116. <dt><code>-mbranch-stub</code></dt>
  117. <dt><code>-mno-branch-stub</code></dt>
  118. <dd><p>Pass through <code>R_CKCORE_PCREL_IMM26BY2</code> relocations for <code>bsr</code>
  119. instructions to the linker.
  120. </p>
  121. <p>This option is only available for bare-metal C-SKY V2 ELF targets,
  122. where it is enabled by default. It cannot be used in code that will be
  123. dynamically linked against shared libraries.
  124. </p>
  125. <a name="index-force2bsr-command_002dline-option_002c-C_002dSKY"></a>
  126. <a name="index-mforce2bsr-command_002dline-option_002c-C_002dSKY"></a>
  127. <a name="index-no_002dforce2bsr-command_002dline-option_002c-C_002dSKY"></a>
  128. <a name="index-mno_002dforce2bsr-command_002dline-option_002c-C_002dSKY"></a>
  129. </dd>
  130. <dt><code>-force2bsr</code></dt>
  131. <dt><code>-mforce2bsr</code></dt>
  132. <dt><code>-no-force2bsr</code></dt>
  133. <dt><code>-mno-force2bsr</code></dt>
  134. <dd><p>Enable/disable transformation of <code>jbsr</code> instructions to <code>bsr</code>.
  135. This option is always enabled (and <samp>-mno-force2bsr</samp> is ignored)
  136. for CK801/CK802 targets. It is also always enabled when
  137. <samp>-mbranch-stub</samp> is in effect.
  138. </p>
  139. <a name="index-jsri2bsr-command_002dline-option_002c-C_002dSKY"></a>
  140. <a name="index-mjsri2bsr-command_002dline-option_002c-C_002dSKY"></a>
  141. <a name="index-no_002djsri2bsr-command_002dline-option_002c-C_002dSKY"></a>
  142. <a name="index-mno_002djsri2bsr-command_002dline-option_002c-C_002dSKY"></a>
  143. </dd>
  144. <dt><code>-jsri2bsr</code></dt>
  145. <dt><code>-mjsri2bsr</code></dt>
  146. <dt><code>-no-jsri2bsr</code></dt>
  147. <dt><code>-mno-jsri2bsr</code></dt>
  148. <dd><p>Enable/disable transformation of <code>jsri</code> instructions to <code>bsr</code>.
  149. This option is enabled by default.
  150. </p>
  151. <a name="index-mnolrw-command_002dline-option_002c-C_002dSKY"></a>
  152. <a name="index-mno_002dlrw-command_002dline-option_002c-C_002dSKY"></a>
  153. </dd>
  154. <dt><code>-mnolrw</code></dt>
  155. <dt><code>-mno-lrw</code></dt>
  156. <dd><p>Enable/disable transformation of <code>lrw</code> instructions into a
  157. <code>movih</code>/<code>ori</code> pair.
  158. </p>
  159. <a name="index-melrw-command_002dline-option_002c-C_002dSKY"></a>
  160. <a name="index-mno_002delrw-command_002dline-option_002c-C_002dSKY"></a>
  161. </dd>
  162. <dt><code>-melrw</code></dt>
  163. <dt><code>-mno-elrw</code></dt>
  164. <dd><p>Enable/disable extended <code>lrw</code> instructions.
  165. This option is enabled by default for CK800-series processors.
  166. </p>
  167. <a name="index-mlaf-command_002dline-option_002c-C_002dSKY"></a>
  168. <a name="index-mliterals_002dafter_002dfunc-command_002dline-option_002c-C_002dSKY"></a>
  169. <a name="index-mno_002dlaf-command_002dline-option_002c-C_002dSKY"></a>
  170. <a name="index-mno_002dliterals_002dafter_002dfunc-command_002dline-option_002c-C_002dSKY"></a>
  171. </dd>
  172. <dt><code>-mlaf</code></dt>
  173. <dt><code>-mliterals-after-func</code></dt>
  174. <dt><code>-mno-laf</code></dt>
  175. <dt><code>-mno-literals-after-func</code></dt>
  176. <dd><p>Enable/disable placement of literal pools after each function.
  177. </p>
  178. <a name="index-mlabr-command_002dline-option_002c-C_002dSKY"></a>
  179. <a name="index-mliterals_002dafter_002dbr-command_002dline-option_002c-C_002dSKY"></a>
  180. <a name="index-mno_002dlabr-command_002dline-option_002c-C_002dSKY"></a>
  181. <a name="index-mnoliterals_002dafter_002dbr-command_002dline-option_002c-C_002dSKY"></a>
  182. </dd>
  183. <dt><code>-mlabr</code></dt>
  184. <dt><code>-mliterals-after-br</code></dt>
  185. <dt><code>-mno-labr</code></dt>
  186. <dt><code>-mnoliterals-after-br</code></dt>
  187. <dd><p>Enable/disable placement of literal pools after unconditional branches.
  188. This option is enabled by default.
  189. </p>
  190. <a name="index-mistack-command_002dline-option_002c-C_002dSKY"></a>
  191. <a name="index-mno_002distack-command_002dline-option_002c-C_002dSKY"></a>
  192. </dd>
  193. <dt><code>-mistack</code></dt>
  194. <dt><code>-mno-istack</code></dt>
  195. <dd><p>Enable/disable interrupt stack instructions. This option is enabled by
  196. default on CK801, CK802, and CK802 processors.
  197. </p>
  198. </dd>
  199. </dl>
  200. <p>The following options explicitly enable certain optional instructions.
  201. These features are also enabled implicitly by using <code>-mcpu=</code> to specify
  202. a processor that supports it.
  203. </p>
  204. <dl compact="compact">
  205. <dd><a name="index-mhard_002dfloat-command_002dline-option_002c-C_002dSKY"></a>
  206. </dd>
  207. <dt><code>-mhard-float</code></dt>
  208. <dd><p>Enable hard float instructions.
  209. </p>
  210. <a name="index-mmp-command_002dline-option_002c-C_002dSKY"></a>
  211. </dd>
  212. <dt><code>-mmp</code></dt>
  213. <dd><p>Enable multiprocessor instructions.
  214. </p>
  215. <a name="index-mcp-command_002dline-option_002c-C_002dSKY"></a>
  216. </dd>
  217. <dt><code>-mcp</code></dt>
  218. <dd><p>Enable coprocessor instructions.
  219. </p>
  220. <a name="index-mcache-command_002dline-option_002c-C_002dSKY"></a>
  221. </dd>
  222. <dt><code>-mcache</code></dt>
  223. <dd><p>Enable cache prefetch instruction.
  224. </p>
  225. <a name="index-msecurity-command_002dline-option_002c-C_002dSKY"></a>
  226. </dd>
  227. <dt><code>-msecurity</code></dt>
  228. <dd><p>Enable C-SKY security instructions.
  229. </p>
  230. <a name="index-mtrust-command_002dline-option_002c-C_002dSKY"></a>
  231. </dd>
  232. <dt><code>-mtrust</code></dt>
  233. <dd><p>Enable C-SKY trust instructions.
  234. </p>
  235. <a name="index-mdsp-command_002dline-option_002c-C_002dSKY"></a>
  236. </dd>
  237. <dt><code>-mdsp</code></dt>
  238. <dd><p>Enable DSP instructions.
  239. </p>
  240. <a name="index-medsp-command_002dline-option_002c-C_002dSKY"></a>
  241. </dd>
  242. <dt><code>-medsp</code></dt>
  243. <dd><p>Enable enhanced DSP instructions.
  244. </p>
  245. <a name="index-mvdsp-command_002dline-option_002c-C_002dSKY"></a>
  246. </dd>
  247. <dt><code>-mvdsp</code></dt>
  248. <dd><p>Enable vector DSP instructions.
  249. </p>
  250. </dd>
  251. </dl>
  252. <hr>
  253. <div class="header">
  254. <p>
  255. Next: <a href="C_002dSKY-Syntax.html#C_002dSKY-Syntax" accesskey="n" rel="next">C-SKY Syntax</a>, Up: <a href="C_002dSKY_002dDependent.html#C_002dSKY_002dDependent" accesskey="u" rel="up">C-SKY-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>
  256. </div>
  257. </body>
  258. </html>