MicroBlaze-Options.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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-2017 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 5.2, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <title>Using the GNU Compiler Collection (GCC): MicroBlaze Options</title>
  20. <meta name="description" content="Using the GNU Compiler Collection (GCC): MicroBlaze Options">
  21. <meta name="keywords" content="Using the GNU Compiler Collection (GCC): MicroBlaze Options">
  22. <meta name="resource-type" content="document">
  23. <meta name="distribution" content="global">
  24. <meta name="Generator" content="makeinfo">
  25. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  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.smallquotation {font-size: smaller}
  36. div.display {margin-left: 3.2em}
  37. div.example {margin-left: 3.2em}
  38. div.indentedblock {margin-left: 3.2em}
  39. div.lisp {margin-left: 3.2em}
  40. div.smalldisplay {margin-left: 3.2em}
  41. div.smallexample {margin-left: 3.2em}
  42. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  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.nocodebreak {white-space:nowrap}
  54. span.nolinebreak {white-space:nowrap}
  55. span.roman {font-family:serif; font-weight:normal}
  56. span.sansserif {font-family:sans-serif; font-weight:normal}
  57. ul.no-bullet {list-style: none}
  58. -->
  59. </style>
  60. </head>
  61. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  62. <a name="MicroBlaze-Options"></a>
  63. <div class="header">
  64. <p>
  65. 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>
  66. </div>
  67. <hr>
  68. <a name="MicroBlaze-Options-1"></a>
  69. <h4 class="subsection">3.18.25 MicroBlaze Options</h4>
  70. <a name="index-MicroBlaze-Options"></a>
  71. <dl compact="compact">
  72. <dt><code>-msoft-float</code></dt>
  73. <dd><a name="index-msoft_002dfloat-5"></a>
  74. <p>Use software emulation for floating point (default).
  75. </p>
  76. </dd>
  77. <dt><code>-mhard-float</code></dt>
  78. <dd><a name="index-mhard_002dfloat-2"></a>
  79. <p>Use hardware floating-point instructions.
  80. </p>
  81. </dd>
  82. <dt><code>-mmemcpy</code></dt>
  83. <dd><a name="index-mmemcpy"></a>
  84. <p>Do not optimize block moves, use <code>memcpy</code>.
  85. </p>
  86. </dd>
  87. <dt><code>-mno-clearbss</code></dt>
  88. <dd><a name="index-mno_002dclearbss"></a>
  89. <p>This option is deprecated. Use <samp>-fno-zero-initialized-in-bss</samp> instead.
  90. </p>
  91. </dd>
  92. <dt><code>-mcpu=<var>cpu-type</var></code></dt>
  93. <dd><a name="index-mcpu_003d-2"></a>
  94. <p>Use features of, and schedule code for, the given CPU.
  95. Supported values are in the format &lsquo;<samp>v<var>X</var>.<var>YY</var>.<var>Z</var></samp>&rsquo;,
  96. where <var>X</var> is a major version, <var>YY</var> is the minor version, and
  97. <var>Z</var> is compatibility code. Example values are &lsquo;<samp>v3.00.a</samp>&rsquo;,
  98. &lsquo;<samp>v4.00.b</samp>&rsquo;, &lsquo;<samp>v5.00.a</samp>&rsquo;, &lsquo;<samp>v5.00.b</samp>&rsquo;, &lsquo;<samp>v5.00.b</samp>&rsquo;, &lsquo;<samp>v6.00.a</samp>&rsquo;.
  99. </p>
  100. </dd>
  101. <dt><code>-mxl-soft-mul</code></dt>
  102. <dd><a name="index-mxl_002dsoft_002dmul"></a>
  103. <p>Use software multiply emulation (default).
  104. </p>
  105. </dd>
  106. <dt><code>-mxl-soft-div</code></dt>
  107. <dd><a name="index-mxl_002dsoft_002ddiv"></a>
  108. <p>Use software emulation for divides (default).
  109. </p>
  110. </dd>
  111. <dt><code>-mxl-barrel-shift</code></dt>
  112. <dd><a name="index-mxl_002dbarrel_002dshift"></a>
  113. <p>Use the hardware barrel shifter.
  114. </p>
  115. </dd>
  116. <dt><code>-mxl-pattern-compare</code></dt>
  117. <dd><a name="index-mxl_002dpattern_002dcompare"></a>
  118. <p>Use pattern compare instructions.
  119. </p>
  120. </dd>
  121. <dt><code>-msmall-divides</code></dt>
  122. <dd><a name="index-msmall_002ddivides"></a>
  123. <p>Use table lookup optimization for small signed integer divisions.
  124. </p>
  125. </dd>
  126. <dt><code>-mxl-stack-check</code></dt>
  127. <dd><a name="index-mxl_002dstack_002dcheck"></a>
  128. <p>This option is deprecated. Use <samp>-fstack-check</samp> instead.
  129. </p>
  130. </dd>
  131. <dt><code>-mxl-gp-opt</code></dt>
  132. <dd><a name="index-mxl_002dgp_002dopt"></a>
  133. <p>Use GP-relative <code>.sdata</code>/<code>.sbss</code> sections.
  134. </p>
  135. </dd>
  136. <dt><code>-mxl-multiply-high</code></dt>
  137. <dd><a name="index-mxl_002dmultiply_002dhigh"></a>
  138. <p>Use multiply high instructions for high part of 32x32 multiply.
  139. </p>
  140. </dd>
  141. <dt><code>-mxl-float-convert</code></dt>
  142. <dd><a name="index-mxl_002dfloat_002dconvert"></a>
  143. <p>Use hardware floating-point conversion instructions.
  144. </p>
  145. </dd>
  146. <dt><code>-mxl-float-sqrt</code></dt>
  147. <dd><a name="index-mxl_002dfloat_002dsqrt"></a>
  148. <p>Use hardware floating-point square root instruction.
  149. </p>
  150. </dd>
  151. <dt><code>-mbig-endian</code></dt>
  152. <dd><a name="index-mbig_002dendian-6"></a>
  153. <p>Generate code for a big-endian target.
  154. </p>
  155. </dd>
  156. <dt><code>-mlittle-endian</code></dt>
  157. <dd><a name="index-mlittle_002dendian-6"></a>
  158. <p>Generate code for a little-endian target.
  159. </p>
  160. </dd>
  161. <dt><code>-mxl-reorder</code></dt>
  162. <dd><a name="index-mxl_002dreorder"></a>
  163. <p>Use reorder instructions (swap and byte reversed load/store).
  164. </p>
  165. </dd>
  166. <dt><code>-mxl-mode-<var>app-model</var></code></dt>
  167. <dd><p>Select application model <var>app-model</var>. Valid models are
  168. </p><dl compact="compact">
  169. <dt>&lsquo;<samp>executable</samp>&rsquo;</dt>
  170. <dd><p>normal executable (default), uses startup code <samp>crt0.o</samp>.
  171. </p>
  172. </dd>
  173. <dt>&lsquo;<samp>xmdstub</samp>&rsquo;</dt>
  174. <dd><p>for use with Xilinx Microprocessor Debugger (XMD) based
  175. software intrusive debug agent called xmdstub. This uses startup file
  176. <samp>crt1.o</samp> and sets the start address of the program to 0x800.
  177. </p>
  178. </dd>
  179. <dt>&lsquo;<samp>bootstrap</samp>&rsquo;</dt>
  180. <dd><p>for applications that are loaded using a bootloader.
  181. This model uses startup file <samp>crt2.o</samp> which does not contain a processor
  182. reset vector handler. This is suitable for transferring control on a
  183. processor reset to the bootloader rather than the application.
  184. </p>
  185. </dd>
  186. <dt>&lsquo;<samp>novectors</samp>&rsquo;</dt>
  187. <dd><p>for applications that do not require any of the
  188. MicroBlaze vectors. This option may be useful for applications running
  189. within a monitoring application. This model uses <samp>crt3.o</samp> as a startup file.
  190. </p></dd>
  191. </dl>
  192. <p>Option <samp>-xl-mode-<var>app-model</var></samp> is a deprecated alias for
  193. <samp>-mxl-mode-<var>app-model</var></samp>.
  194. </p>
  195. </dd>
  196. </dl>
  197. <hr>
  198. <div class="header">
  199. <p>
  200. 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>
  201. </div>
  202. </body>
  203. </html>