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.

279 lines
10KB

  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>MeP Options (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="MeP Options (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="MeP 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="MicroBlaze-Options.html#MicroBlaze-Options" rel="next" title="MicroBlaze Options">
  31. <link href="MCore-Options.html#MCore-Options" rel="prev" title="MCore 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="MeP-Options"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="MicroBlaze-Options.html#MicroBlaze-Options" accesskey="n" rel="next">MicroBlaze Options</a>, Previous: <a href="MCore-Options.html#MCore-Options" accesskey="p" rel="prev">MCore 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="MeP-Options-1"></a>
  68. <h4 class="subsection">3.19.27 MeP Options</h4>
  69. <a name="index-MeP-options"></a>
  70. <dl compact="compact">
  71. <dt><code>-mabsdiff</code></dt>
  72. <dd><a name="index-mabsdiff"></a>
  73. <p>Enables the <code>abs</code> instruction, which is the absolute difference
  74. between two registers.
  75. </p>
  76. </dd>
  77. <dt><code>-mall-opts</code></dt>
  78. <dd><a name="index-mall_002dopts"></a>
  79. <p>Enables all the optional instructions&mdash;average, multiply, divide, bit
  80. operations, leading zero, absolute difference, min/max, clip, and
  81. saturation.
  82. </p>
  83. </dd>
  84. <dt><code>-maverage</code></dt>
  85. <dd><a name="index-maverage"></a>
  86. <p>Enables the <code>ave</code> instruction, which computes the average of two
  87. registers.
  88. </p>
  89. </dd>
  90. <dt><code>-mbased=<var>n</var></code></dt>
  91. <dd><a name="index-mbased_003d"></a>
  92. <p>Variables of size <var>n</var> bytes or smaller are placed in the
  93. <code>.based</code> section by default. Based variables use the <code>$tp</code>
  94. register as a base register, and there is a 128-byte limit to the
  95. <code>.based</code> section.
  96. </p>
  97. </dd>
  98. <dt><code>-mbitops</code></dt>
  99. <dd><a name="index-mbitops"></a>
  100. <p>Enables the bit operation instructions&mdash;bit test (<code>btstm</code>), set
  101. (<code>bsetm</code>), clear (<code>bclrm</code>), invert (<code>bnotm</code>), and
  102. test-and-set (<code>tas</code>).
  103. </p>
  104. </dd>
  105. <dt><code>-mc=<var>name</var></code></dt>
  106. <dd><a name="index-mc_003d"></a>
  107. <p>Selects which section constant data is placed in. <var>name</var> may
  108. be &lsquo;<samp>tiny</samp>&rsquo;, &lsquo;<samp>near</samp>&rsquo;, or &lsquo;<samp>far</samp>&rsquo;.
  109. </p>
  110. </dd>
  111. <dt><code>-mclip</code></dt>
  112. <dd><a name="index-mclip"></a>
  113. <p>Enables the <code>clip</code> instruction. Note that <samp>-mclip</samp> is not
  114. useful unless you also provide <samp>-mminmax</samp>.
  115. </p>
  116. </dd>
  117. <dt><code>-mconfig=<var>name</var></code></dt>
  118. <dd><a name="index-mconfig_003d"></a>
  119. <p>Selects one of the built-in core configurations. Each MeP chip has
  120. one or more modules in it; each module has a core CPU and a variety of
  121. coprocessors, optional instructions, and peripherals. The
  122. <code>MeP-Integrator</code> tool, not part of GCC, provides these
  123. configurations through this option; using this option is the same as
  124. using all the corresponding command-line options. The default
  125. configuration is &lsquo;<samp>default</samp>&rsquo;.
  126. </p>
  127. </dd>
  128. <dt><code>-mcop</code></dt>
  129. <dd><a name="index-mcop"></a>
  130. <p>Enables the coprocessor instructions. By default, this is a 32-bit
  131. coprocessor. Note that the coprocessor is normally enabled via the
  132. <samp>-mconfig=</samp> option.
  133. </p>
  134. </dd>
  135. <dt><code>-mcop32</code></dt>
  136. <dd><a name="index-mcop32"></a>
  137. <p>Enables the 32-bit coprocessor&rsquo;s instructions.
  138. </p>
  139. </dd>
  140. <dt><code>-mcop64</code></dt>
  141. <dd><a name="index-mcop64"></a>
  142. <p>Enables the 64-bit coprocessor&rsquo;s instructions.
  143. </p>
  144. </dd>
  145. <dt><code>-mivc2</code></dt>
  146. <dd><a name="index-mivc2"></a>
  147. <p>Enables IVC2 scheduling. IVC2 is a 64-bit VLIW coprocessor.
  148. </p>
  149. </dd>
  150. <dt><code>-mdc</code></dt>
  151. <dd><a name="index-mdc"></a>
  152. <p>Causes constant variables to be placed in the <code>.near</code> section.
  153. </p>
  154. </dd>
  155. <dt><code>-mdiv</code></dt>
  156. <dd><a name="index-mdiv-3"></a>
  157. <p>Enables the <code>div</code> and <code>divu</code> instructions.
  158. </p>
  159. </dd>
  160. <dt><code>-meb</code></dt>
  161. <dd><a name="index-meb"></a>
  162. <p>Generate big-endian code.
  163. </p>
  164. </dd>
  165. <dt><code>-mel</code></dt>
  166. <dd><a name="index-mel"></a>
  167. <p>Generate little-endian code.
  168. </p>
  169. </dd>
  170. <dt><code>-mio-volatile</code></dt>
  171. <dd><a name="index-mio_002dvolatile"></a>
  172. <p>Tells the compiler that any variable marked with the <code>io</code>
  173. attribute is to be considered volatile.
  174. </p>
  175. </dd>
  176. <dt><code>-ml</code></dt>
  177. <dd><a name="index-ml"></a>
  178. <p>Causes variables to be assigned to the <code>.far</code> section by default.
  179. </p>
  180. </dd>
  181. <dt><code>-mleadz</code></dt>
  182. <dd><a name="index-mleadz"></a>
  183. <p>Enables the <code>leadz</code> (leading zero) instruction.
  184. </p>
  185. </dd>
  186. <dt><code>-mm</code></dt>
  187. <dd><a name="index-mm"></a>
  188. <p>Causes variables to be assigned to the <code>.near</code> section by default.
  189. </p>
  190. </dd>
  191. <dt><code>-mminmax</code></dt>
  192. <dd><a name="index-mminmax"></a>
  193. <p>Enables the <code>min</code> and <code>max</code> instructions.
  194. </p>
  195. </dd>
  196. <dt><code>-mmult</code></dt>
  197. <dd><a name="index-mmult"></a>
  198. <p>Enables the multiplication and multiply-accumulate instructions.
  199. </p>
  200. </dd>
  201. <dt><code>-mno-opts</code></dt>
  202. <dd><a name="index-mno_002dopts"></a>
  203. <p>Disables all the optional instructions enabled by <samp>-mall-opts</samp>.
  204. </p>
  205. </dd>
  206. <dt><code>-mrepeat</code></dt>
  207. <dd><a name="index-mrepeat"></a>
  208. <p>Enables the <code>repeat</code> and <code>erepeat</code> instructions, used for
  209. low-overhead looping.
  210. </p>
  211. </dd>
  212. <dt><code>-ms</code></dt>
  213. <dd><a name="index-ms-1"></a>
  214. <p>Causes all variables to default to the <code>.tiny</code> section. Note
  215. that there is a 65536-byte limit to this section. Accesses to these
  216. variables use the <code>%gp</code> base register.
  217. </p>
  218. </dd>
  219. <dt><code>-msatur</code></dt>
  220. <dd><a name="index-msatur"></a>
  221. <p>Enables the saturation instructions. Note that the compiler does not
  222. currently generate these itself, but this option is included for
  223. compatibility with other tools, like <code>as</code>.
  224. </p>
  225. </dd>
  226. <dt><code>-msdram</code></dt>
  227. <dd><a name="index-msdram-1"></a>
  228. <p>Link the SDRAM-based runtime instead of the default ROM-based runtime.
  229. </p>
  230. </dd>
  231. <dt><code>-msim</code></dt>
  232. <dd><a name="index-msim-5"></a>
  233. <p>Link the simulator run-time libraries.
  234. </p>
  235. </dd>
  236. <dt><code>-msimnovec</code></dt>
  237. <dd><a name="index-msimnovec"></a>
  238. <p>Link the simulator runtime libraries, excluding built-in support
  239. for reset and exception vectors and tables.
  240. </p>
  241. </dd>
  242. <dt><code>-mtf</code></dt>
  243. <dd><a name="index-mtf"></a>
  244. <p>Causes all functions to default to the <code>.far</code> section. Without
  245. this option, functions default to the <code>.near</code> section.
  246. </p>
  247. </dd>
  248. <dt><code>-mtiny=<var>n</var></code></dt>
  249. <dd><a name="index-mtiny_003d"></a>
  250. <p>Variables that are <var>n</var> bytes or smaller are allocated to the
  251. <code>.tiny</code> section. These variables use the <code>$gp</code> base
  252. register. The default for this option is 4, but note that there&rsquo;s a
  253. 65536-byte limit to the <code>.tiny</code> section.
  254. </p>
  255. </dd>
  256. </dl>
  257. <hr>
  258. <div class="header">
  259. <p>
  260. Next: <a href="MicroBlaze-Options.html#MicroBlaze-Options" accesskey="n" rel="next">MicroBlaze Options</a>, Previous: <a href="MCore-Options.html#MCore-Options" accesskey="p" rel="prev">MCore 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>
  261. </div>
  262. </body>
  263. </html>