No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

231 líneas
9.6KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <title>CRIS Options (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="CRIS Options (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="CRIS Options (Using the GNU Compiler Collection (GCC))">
  23. <meta name="resource-type" content="document">
  24. <meta name="distribution" content="global">
  25. <meta name="Generator" content="makeinfo">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Submodel-Options.html#Submodel-Options" rel="up" title="Submodel Options">
  30. <link href="CR16-Options.html#CR16-Options" rel="next" title="CR16 Options">
  31. <link href="C6X-Options.html#C6X-Options" rel="prev" title="C6X Options">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.indentedblock {margin-right: 0em}
  36. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  37. blockquote.smallquotation {font-size: smaller}
  38. div.display {margin-left: 3.2em}
  39. div.example {margin-left: 3.2em}
  40. div.lisp {margin-left: 3.2em}
  41. div.smalldisplay {margin-left: 3.2em}
  42. div.smallexample {margin-left: 3.2em}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style: oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nolinebreak {white-space: nowrap}
  54. span.roman {font-family: initial; font-weight: normal}
  55. span.sansserif {font-family: sans-serif; font-weight: normal}
  56. ul.no-bullet {list-style: none}
  57. -->
  58. </style>
  59. </head>
  60. <body lang="en">
  61. <a name="CRIS-Options"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="CR16-Options.html#CR16-Options" accesskey="n" rel="next">CR16 Options</a>, Previous: <a href="C6X-Options.html#C6X-Options" accesskey="p" rel="prev">C6X Options</a>, Up: <a href="Submodel-Options.html#Submodel-Options" accesskey="u" rel="up">Submodel Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  65. </div>
  66. <hr>
  67. <a name="CRIS-Options-1"></a>
  68. <h4 class="subsection">3.19.9 CRIS Options</h4>
  69. <a name="index-CRIS-Options"></a>
  70. <p>These options are defined specifically for the CRIS ports.
  71. </p>
  72. <dl compact="compact">
  73. <dt><code>-march=<var>architecture-type</var></code></dt>
  74. <dt><code>-mcpu=<var>architecture-type</var></code></dt>
  75. <dd><a name="index-march-4"></a>
  76. <a name="index-mcpu-3"></a>
  77. <p>Generate code for the specified architecture. The choices for
  78. <var>architecture-type</var> are &lsquo;<samp>v3</samp>&rsquo;, &lsquo;<samp>v8</samp>&rsquo; and &lsquo;<samp>v10</samp>&rsquo; for
  79. respectively ETRAX&nbsp;<!-- /@w -->4, ETRAX&nbsp;<!-- /@w -->100, and ETRAX&nbsp;<!-- /@w -->100&nbsp;<!-- /@w -->LX.
  80. Default is &lsquo;<samp>v0</samp>&rsquo; except for cris-axis-linux-gnu, where the default is
  81. &lsquo;<samp>v10</samp>&rsquo;.
  82. </p>
  83. </dd>
  84. <dt><code>-mtune=<var>architecture-type</var></code></dt>
  85. <dd><a name="index-mtune-5"></a>
  86. <p>Tune to <var>architecture-type</var> everything applicable about the generated
  87. code, except for the ABI and the set of available instructions. The
  88. choices for <var>architecture-type</var> are the same as for
  89. <samp>-march=<var>architecture-type</var></samp>.
  90. </p>
  91. </dd>
  92. <dt><code>-mmax-stack-frame=<var>n</var></code></dt>
  93. <dd><a name="index-mmax_002dstack_002dframe"></a>
  94. <p>Warn when the stack frame of a function exceeds <var>n</var> bytes.
  95. </p>
  96. </dd>
  97. <dt><code>-metrax4</code></dt>
  98. <dt><code>-metrax100</code></dt>
  99. <dd><a name="index-metrax4"></a>
  100. <a name="index-metrax100"></a>
  101. <p>The options <samp>-metrax4</samp> and <samp>-metrax100</samp> are synonyms for
  102. <samp>-march=v3</samp> and <samp>-march=v8</samp> respectively.
  103. </p>
  104. </dd>
  105. <dt><code>-mmul-bug-workaround</code></dt>
  106. <dt><code>-mno-mul-bug-workaround</code></dt>
  107. <dd><a name="index-mmul_002dbug_002dworkaround"></a>
  108. <a name="index-mno_002dmul_002dbug_002dworkaround"></a>
  109. <p>Work around a bug in the <code>muls</code> and <code>mulu</code> instructions for CPU
  110. models where it applies. This option is active by default.
  111. </p>
  112. </dd>
  113. <dt><code>-mpdebug</code></dt>
  114. <dd><a name="index-mpdebug"></a>
  115. <p>Enable CRIS-specific verbose debug-related information in the assembly
  116. code. This option also has the effect of turning off the &lsquo;<samp>#NO_APP</samp>&rsquo;
  117. formatted-code indicator to the assembler at the beginning of the
  118. assembly file.
  119. </p>
  120. </dd>
  121. <dt><code>-mcc-init</code></dt>
  122. <dd><a name="index-mcc_002dinit"></a>
  123. <p>Do not use condition-code results from previous instruction; always emit
  124. compare and test instructions before use of condition codes.
  125. </p>
  126. </dd>
  127. <dt><code>-mno-side-effects</code></dt>
  128. <dd><a name="index-mno_002dside_002deffects"></a>
  129. <a name="index-mside_002deffects"></a>
  130. <p>Do not emit instructions with side effects in addressing modes other than
  131. post-increment.
  132. </p>
  133. </dd>
  134. <dt><code>-mstack-align</code></dt>
  135. <dt><code>-mno-stack-align</code></dt>
  136. <dt><code>-mdata-align</code></dt>
  137. <dt><code>-mno-data-align</code></dt>
  138. <dt><code>-mconst-align</code></dt>
  139. <dt><code>-mno-const-align</code></dt>
  140. <dd><a name="index-mstack_002dalign"></a>
  141. <a name="index-mno_002dstack_002dalign"></a>
  142. <a name="index-mdata_002dalign"></a>
  143. <a name="index-mno_002ddata_002dalign"></a>
  144. <a name="index-mconst_002dalign"></a>
  145. <a name="index-mno_002dconst_002dalign"></a>
  146. <p>These options (&lsquo;<samp>no-</samp>&rsquo; options) arrange (eliminate arrangements) for the
  147. stack frame, individual data and constants to be aligned for the maximum
  148. single data access size for the chosen CPU model. The default is to
  149. arrange for 32-bit alignment. ABI details such as structure layout are
  150. not affected by these options.
  151. </p>
  152. </dd>
  153. <dt><code>-m32-bit</code></dt>
  154. <dt><code>-m16-bit</code></dt>
  155. <dt><code>-m8-bit</code></dt>
  156. <dd><a name="index-m32_002dbit"></a>
  157. <a name="index-m16_002dbit"></a>
  158. <a name="index-m8_002dbit"></a>
  159. <p>Similar to the stack- data- and const-align options above, these options
  160. arrange for stack frame, writable data and constants to all be 32-bit,
  161. 16-bit or 8-bit aligned. The default is 32-bit alignment.
  162. </p>
  163. </dd>
  164. <dt><code>-mno-prologue-epilogue</code></dt>
  165. <dt><code>-mprologue-epilogue</code></dt>
  166. <dd><a name="index-mno_002dprologue_002depilogue"></a>
  167. <a name="index-mprologue_002depilogue"></a>
  168. <p>With <samp>-mno-prologue-epilogue</samp>, the normal function prologue and
  169. epilogue which set up the stack frame are omitted and no return
  170. instructions or return sequences are generated in the code. Use this
  171. option only together with visual inspection of the compiled code: no
  172. warnings or errors are generated when call-saved registers must be saved,
  173. or storage for local variables needs to be allocated.
  174. </p>
  175. </dd>
  176. <dt><code>-mno-gotplt</code></dt>
  177. <dt><code>-mgotplt</code></dt>
  178. <dd><a name="index-mno_002dgotplt"></a>
  179. <a name="index-mgotplt"></a>
  180. <p>With <samp>-fpic</samp> and <samp>-fPIC</samp>, don&rsquo;t generate (do generate)
  181. instruction sequences that load addresses for functions from the PLT part
  182. of the GOT rather than (traditional on other architectures) calls to the
  183. PLT. The default is <samp>-mgotplt</samp>.
  184. </p>
  185. </dd>
  186. <dt><code>-melf</code></dt>
  187. <dd><a name="index-melf"></a>
  188. <p>Legacy no-op option only recognized with the cris-axis-elf and
  189. cris-axis-linux-gnu targets.
  190. </p>
  191. </dd>
  192. <dt><code>-mlinux</code></dt>
  193. <dd><a name="index-mlinux"></a>
  194. <p>Legacy no-op option only recognized with the cris-axis-linux-gnu target.
  195. </p>
  196. </dd>
  197. <dt><code>-sim</code></dt>
  198. <dd><a name="index-sim"></a>
  199. <p>This option, recognized for the cris-axis-elf, arranges
  200. to link with input-output functions from a simulator library. Code,
  201. initialized data and zero-initialized data are allocated consecutively.
  202. </p>
  203. </dd>
  204. <dt><code>-sim2</code></dt>
  205. <dd><a name="index-sim2"></a>
  206. <p>Like <samp>-sim</samp>, but pass linker options to locate initialized data at
  207. 0x40000000 and zero-initialized data at 0x80000000.
  208. </p></dd>
  209. </dl>
  210. <hr>
  211. <div class="header">
  212. <p>
  213. Next: <a href="CR16-Options.html#CR16-Options" accesskey="n" rel="next">CR16 Options</a>, Previous: <a href="C6X-Options.html#C6X-Options" accesskey="p" rel="prev">C6X Options</a>, Up: <a href="Submodel-Options.html#Submodel-Options" accesskey="u" rel="up">Submodel Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  214. </div>
  215. </body>
  216. </html>