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.

C_002dSKY-Options.html 11KB

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