NDS32-Options.html 7.2 KB

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