MeP-Options.html 10 KB

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