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.

225 line
8.7KB

  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>MicroBlaze Options (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="MicroBlaze Options (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="MicroBlaze 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="MIPS-Options.html#MIPS-Options" rel="next" title="MIPS Options">
  31. <link href="MeP-Options.html#MeP-Options" rel="prev" title="MeP 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="MicroBlaze-Options"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="MIPS-Options.html#MIPS-Options" accesskey="n" rel="next">MIPS Options</a>, Previous: <a href="MeP-Options.html#MeP-Options" accesskey="p" rel="prev">MeP 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="MicroBlaze-Options-1"></a>
  68. <h4 class="subsection">3.19.28 MicroBlaze Options</h4>
  69. <a name="index-MicroBlaze-Options"></a>
  70. <dl compact="compact">
  71. <dt><code>-msoft-float</code></dt>
  72. <dd><a name="index-msoft_002dfloat-6"></a>
  73. <p>Use software emulation for floating point (default).
  74. </p>
  75. </dd>
  76. <dt><code>-mhard-float</code></dt>
  77. <dd><a name="index-mhard_002dfloat-3"></a>
  78. <p>Use hardware floating-point instructions.
  79. </p>
  80. </dd>
  81. <dt><code>-mmemcpy</code></dt>
  82. <dd><a name="index-mmemcpy"></a>
  83. <p>Do not optimize block moves, use <code>memcpy</code>.
  84. </p>
  85. </dd>
  86. <dt><code>-mno-clearbss</code></dt>
  87. <dd><a name="index-mno_002dclearbss"></a>
  88. <p>This option is deprecated. Use <samp>-fno-zero-initialized-in-bss</samp> instead.
  89. </p>
  90. </dd>
  91. <dt><code>-mcpu=<var>cpu-type</var></code></dt>
  92. <dd><a name="index-mcpu_003d-3"></a>
  93. <p>Use features of, and schedule code for, the given CPU.
  94. Supported values are in the format &lsquo;<samp>v<var>X</var>.<var>YY</var>.<var>Z</var></samp>&rsquo;,
  95. where <var>X</var> is a major version, <var>YY</var> is the minor version, and
  96. <var>Z</var> is compatibility code. Example values are &lsquo;<samp>v3.00.a</samp>&rsquo;,
  97. &lsquo;<samp>v4.00.b</samp>&rsquo;, &lsquo;<samp>v5.00.a</samp>&rsquo;, &lsquo;<samp>v5.00.b</samp>&rsquo;, &lsquo;<samp>v6.00.a</samp>&rsquo;.
  98. </p>
  99. </dd>
  100. <dt><code>-mxl-soft-mul</code></dt>
  101. <dd><a name="index-mxl_002dsoft_002dmul"></a>
  102. <p>Use software multiply emulation (default).
  103. </p>
  104. </dd>
  105. <dt><code>-mxl-soft-div</code></dt>
  106. <dd><a name="index-mxl_002dsoft_002ddiv"></a>
  107. <p>Use software emulation for divides (default).
  108. </p>
  109. </dd>
  110. <dt><code>-mxl-barrel-shift</code></dt>
  111. <dd><a name="index-mxl_002dbarrel_002dshift"></a>
  112. <p>Use the hardware barrel shifter.
  113. </p>
  114. </dd>
  115. <dt><code>-mxl-pattern-compare</code></dt>
  116. <dd><a name="index-mxl_002dpattern_002dcompare"></a>
  117. <p>Use pattern compare instructions.
  118. </p>
  119. </dd>
  120. <dt><code>-msmall-divides</code></dt>
  121. <dd><a name="index-msmall_002ddivides"></a>
  122. <p>Use table lookup optimization for small signed integer divisions.
  123. </p>
  124. </dd>
  125. <dt><code>-mxl-stack-check</code></dt>
  126. <dd><a name="index-mxl_002dstack_002dcheck"></a>
  127. <p>This option is deprecated. Use <samp>-fstack-check</samp> instead.
  128. </p>
  129. </dd>
  130. <dt><code>-mxl-gp-opt</code></dt>
  131. <dd><a name="index-mxl_002dgp_002dopt"></a>
  132. <p>Use GP-relative <code>.sdata</code>/<code>.sbss</code> sections.
  133. </p>
  134. </dd>
  135. <dt><code>-mxl-multiply-high</code></dt>
  136. <dd><a name="index-mxl_002dmultiply_002dhigh"></a>
  137. <p>Use multiply high instructions for high part of 32x32 multiply.
  138. </p>
  139. </dd>
  140. <dt><code>-mxl-float-convert</code></dt>
  141. <dd><a name="index-mxl_002dfloat_002dconvert"></a>
  142. <p>Use hardware floating-point conversion instructions.
  143. </p>
  144. </dd>
  145. <dt><code>-mxl-float-sqrt</code></dt>
  146. <dd><a name="index-mxl_002dfloat_002dsqrt"></a>
  147. <p>Use hardware floating-point square root instruction.
  148. </p>
  149. </dd>
  150. <dt><code>-mbig-endian</code></dt>
  151. <dd><a name="index-mbig_002dendian-8"></a>
  152. <p>Generate code for a big-endian target.
  153. </p>
  154. </dd>
  155. <dt><code>-mlittle-endian</code></dt>
  156. <dd><a name="index-mlittle_002dendian-8"></a>
  157. <p>Generate code for a little-endian target.
  158. </p>
  159. </dd>
  160. <dt><code>-mxl-reorder</code></dt>
  161. <dd><a name="index-mxl_002dreorder"></a>
  162. <p>Use reorder instructions (swap and byte reversed load/store).
  163. </p>
  164. </dd>
  165. <dt><code>-mxl-mode-<var>app-model</var></code></dt>
  166. <dd><p>Select application model <var>app-model</var>. Valid models are
  167. </p><dl compact="compact">
  168. <dt>&lsquo;<samp>executable</samp>&rsquo;</dt>
  169. <dd><p>normal executable (default), uses startup code <samp>crt0.o</samp>.
  170. </p>
  171. </dd>
  172. <dt>&lsquo;<samp>-mpic-data-is-text-relative</samp>&rsquo;</dt>
  173. <dd><a name="index-mpic_002ddata_002dis_002dtext_002drelative-1"></a>
  174. <p>Assume that the displacement between the text and data segments is fixed
  175. at static link time. This allows data to be referenced by offset from start of
  176. text address instead of GOT since PC-relative addressing is not supported.
  177. </p>
  178. </dd>
  179. <dt>&lsquo;<samp>xmdstub</samp>&rsquo;</dt>
  180. <dd><p>for use with Xilinx Microprocessor Debugger (XMD) based
  181. software intrusive debug agent called xmdstub. This uses startup file
  182. <samp>crt1.o</samp> and sets the start address of the program to 0x800.
  183. </p>
  184. </dd>
  185. <dt>&lsquo;<samp>bootstrap</samp>&rsquo;</dt>
  186. <dd><p>for applications that are loaded using a bootloader.
  187. This model uses startup file <samp>crt2.o</samp> which does not contain a processor
  188. reset vector handler. This is suitable for transferring control on a
  189. processor reset to the bootloader rather than the application.
  190. </p>
  191. </dd>
  192. <dt>&lsquo;<samp>novectors</samp>&rsquo;</dt>
  193. <dd><p>for applications that do not require any of the
  194. MicroBlaze vectors. This option may be useful for applications running
  195. within a monitoring application. This model uses <samp>crt3.o</samp> as a startup file.
  196. </p></dd>
  197. </dl>
  198. <p>Option <samp>-xl-mode-<var>app-model</var></samp> is a deprecated alias for
  199. <samp>-mxl-mode-<var>app-model</var></samp>.
  200. </p>
  201. </dd>
  202. </dl>
  203. <hr>
  204. <div class="header">
  205. <p>
  206. Next: <a href="MIPS-Options.html#MIPS-Options" accesskey="n" rel="next">MIPS Options</a>, Previous: <a href="MeP-Options.html#MeP-Options" accesskey="p" rel="prev">MeP 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>
  207. </div>
  208. </body>
  209. </html>