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.

220 lines
7.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>NDS32 Options (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="NDS32 Options (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="NDS32 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="Nios-II-Options.html#Nios-II-Options" rel="next" title="Nios II Options">
  31. <link href="MSP430-Options.html#MSP430-Options" rel="prev" title="MSP430 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="NDS32-Options"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="Nios-II-Options.html#Nios-II-Options" accesskey="n" rel="next">Nios II Options</a>, Previous: <a href="MSP430-Options.html#MSP430-Options" accesskey="p" rel="prev">MSP430 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="NDS32-Options-1"></a>
  68. <h4 class="subsection">3.19.34 NDS32 Options</h4>
  69. <a name="index-NDS32-Options"></a>
  70. <p>These options are defined for NDS32 implementations:
  71. </p>
  72. <dl compact="compact">
  73. <dt><code>-mbig-endian</code></dt>
  74. <dd><a name="index-mbig_002dendian-9"></a>
  75. <p>Generate code in big-endian mode.
  76. </p>
  77. </dd>
  78. <dt><code>-mlittle-endian</code></dt>
  79. <dd><a name="index-mlittle_002dendian-9"></a>
  80. <p>Generate code in little-endian mode.
  81. </p>
  82. </dd>
  83. <dt><code>-mreduced-regs</code></dt>
  84. <dd><a name="index-mreduced_002dregs"></a>
  85. <p>Use reduced-set registers for register allocation.
  86. </p>
  87. </dd>
  88. <dt><code>-mfull-regs</code></dt>
  89. <dd><a name="index-mfull_002dregs"></a>
  90. <p>Use full-set registers for register allocation.
  91. </p>
  92. </dd>
  93. <dt><code>-mcmov</code></dt>
  94. <dd><a name="index-mcmov"></a>
  95. <p>Generate conditional move instructions.
  96. </p>
  97. </dd>
  98. <dt><code>-mno-cmov</code></dt>
  99. <dd><a name="index-mno_002dcmov"></a>
  100. <p>Do not generate conditional move instructions.
  101. </p>
  102. </dd>
  103. <dt><code>-mext-perf</code></dt>
  104. <dd><a name="index-mext_002dperf"></a>
  105. <p>Generate performance extension instructions.
  106. </p>
  107. </dd>
  108. <dt><code>-mno-ext-perf</code></dt>
  109. <dd><a name="index-mno_002dext_002dperf"></a>
  110. <p>Do not generate performance extension instructions.
  111. </p>
  112. </dd>
  113. <dt><code>-mext-perf2</code></dt>
  114. <dd><a name="index-mext_002dperf2"></a>
  115. <p>Generate performance extension 2 instructions.
  116. </p>
  117. </dd>
  118. <dt><code>-mno-ext-perf2</code></dt>
  119. <dd><a name="index-mno_002dext_002dperf2"></a>
  120. <p>Do not generate performance extension 2 instructions.
  121. </p>
  122. </dd>
  123. <dt><code>-mext-string</code></dt>
  124. <dd><a name="index-mext_002dstring"></a>
  125. <p>Generate string extension instructions.
  126. </p>
  127. </dd>
  128. <dt><code>-mno-ext-string</code></dt>
  129. <dd><a name="index-mno_002dext_002dstring"></a>
  130. <p>Do not generate string extension instructions.
  131. </p>
  132. </dd>
  133. <dt><code>-mv3push</code></dt>
  134. <dd><a name="index-mv3push"></a>
  135. <p>Generate v3 push25/pop25 instructions.
  136. </p>
  137. </dd>
  138. <dt><code>-mno-v3push</code></dt>
  139. <dd><a name="index-mno_002dv3push"></a>
  140. <p>Do not generate v3 push25/pop25 instructions.
  141. </p>
  142. </dd>
  143. <dt><code>-m16-bit</code></dt>
  144. <dd><a name="index-m16_002dbit-1"></a>
  145. <p>Generate 16-bit instructions.
  146. </p>
  147. </dd>
  148. <dt><code>-mno-16-bit</code></dt>
  149. <dd><a name="index-mno_002d16_002dbit"></a>
  150. <p>Do not generate 16-bit instructions.
  151. </p>
  152. </dd>
  153. <dt><code>-misr-vector-size=<var>num</var></code></dt>
  154. <dd><a name="index-misr_002dvector_002dsize"></a>
  155. <p>Specify the size of each interrupt vector, which must be 4 or 16.
  156. </p>
  157. </dd>
  158. <dt><code>-mcache-block-size=<var>num</var></code></dt>
  159. <dd><a name="index-mcache_002dblock_002dsize"></a>
  160. <p>Specify the size of each cache block,
  161. which must be a power of 2 between 4 and 512.
  162. </p>
  163. </dd>
  164. <dt><code>-march=<var>arch</var></code></dt>
  165. <dd><a name="index-march-9"></a>
  166. <p>Specify the name of the target architecture.
  167. </p>
  168. </dd>
  169. <dt><code>-mcmodel=<var>code-model</var></code></dt>
  170. <dd><a name="index-mcmodel"></a>
  171. <p>Set the code model to one of
  172. </p><dl compact="compact">
  173. <dt>&lsquo;<samp>small</samp>&rsquo;</dt>
  174. <dd><p>All the data and read-only data segments must be within 512KB addressing space.
  175. The text segment must be within 16MB addressing space.
  176. </p></dd>
  177. <dt>&lsquo;<samp>medium</samp>&rsquo;</dt>
  178. <dd><p>The data segment must be within 512KB while the read-only data segment can be
  179. within 4GB addressing space. The text segment should be still within 16MB
  180. addressing space.
  181. </p></dd>
  182. <dt>&lsquo;<samp>large</samp>&rsquo;</dt>
  183. <dd><p>All the text and data segments can be within 4GB addressing space.
  184. </p></dd>
  185. </dl>
  186. </dd>
  187. <dt><code>-mctor-dtor</code></dt>
  188. <dd><a name="index-mctor_002ddtor"></a>
  189. <p>Enable constructor/destructor feature.
  190. </p>
  191. </dd>
  192. <dt><code>-mrelax</code></dt>
  193. <dd><a name="index-mrelax-4"></a>
  194. <p>Guide linker to relax instructions.
  195. </p>
  196. </dd>
  197. </dl>
  198. <hr>
  199. <div class="header">
  200. <p>
  201. Next: <a href="Nios-II-Options.html#Nios-II-Options" accesskey="n" rel="next">Nios II Options</a>, Previous: <a href="MSP430-Options.html#MSP430-Options" accesskey="p" rel="prev">MSP430 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>
  202. </div>
  203. </body>
  204. </html>