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.

M32R_002fD-Options.html 9.0KB

3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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>M32R/D Options (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="M32R/D Options (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="M32R/D 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="M680x0-Options.html#M680x0-Options" rel="next" title="M680x0 Options">
  31. <link href="M32C-Options.html#M32C-Options" rel="prev" title="M32C 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="M32R_002fD-Options"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="M680x0-Options.html#M680x0-Options" accesskey="n" rel="next">M680x0 Options</a>, Previous: <a href="M32C-Options.html#M32C-Options" accesskey="p" rel="prev">M32C 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="M32R_002fD-Options-1"></a>
  68. <h4 class="subsection">3.19.24 M32R/D Options</h4>
  69. <a name="index-M32R_002fD-options"></a>
  70. <p>These <samp>-m</samp> options are defined for Renesas M32R/D architectures:
  71. </p>
  72. <dl compact="compact">
  73. <dt><code>-m32r2</code></dt>
  74. <dd><a name="index-m32r2"></a>
  75. <p>Generate code for the M32R/2.
  76. </p>
  77. </dd>
  78. <dt><code>-m32rx</code></dt>
  79. <dd><a name="index-m32rx"></a>
  80. <p>Generate code for the M32R/X.
  81. </p>
  82. </dd>
  83. <dt><code>-m32r</code></dt>
  84. <dd><a name="index-m32r"></a>
  85. <p>Generate code for the M32R. This is the default.
  86. </p>
  87. </dd>
  88. <dt><code>-mmodel=small</code></dt>
  89. <dd><a name="index-mmodel_003dsmall"></a>
  90. <p>Assume all objects live in the lower 16MB of memory (so that their addresses
  91. can be loaded with the <code>ld24</code> instruction), and assume all subroutines
  92. are reachable with the <code>bl</code> instruction.
  93. This is the default.
  94. </p>
  95. <p>The addressability of a particular object can be set with the
  96. <code>model</code> attribute.
  97. </p>
  98. </dd>
  99. <dt><code>-mmodel=medium</code></dt>
  100. <dd><a name="index-mmodel_003dmedium"></a>
  101. <p>Assume objects may be anywhere in the 32-bit address space (the compiler
  102. generates <code>seth/add3</code> instructions to load their addresses), and
  103. assume all subroutines are reachable with the <code>bl</code> instruction.
  104. </p>
  105. </dd>
  106. <dt><code>-mmodel=large</code></dt>
  107. <dd><a name="index-mmodel_003dlarge"></a>
  108. <p>Assume objects may be anywhere in the 32-bit address space (the compiler
  109. generates <code>seth/add3</code> instructions to load their addresses), and
  110. assume subroutines may not be reachable with the <code>bl</code> instruction
  111. (the compiler generates the much slower <code>seth/add3/jl</code>
  112. instruction sequence).
  113. </p>
  114. </dd>
  115. <dt><code>-msdata=none</code></dt>
  116. <dd><a name="index-msdata_003dnone-1"></a>
  117. <p>Disable use of the small data area. Variables are put into
  118. one of <code>.data</code>, <code>.bss</code>, or <code>.rodata</code> (unless the
  119. <code>section</code> attribute has been specified).
  120. This is the default.
  121. </p>
  122. <p>The small data area consists of sections <code>.sdata</code> and <code>.sbss</code>.
  123. Objects may be explicitly put in the small data area with the
  124. <code>section</code> attribute using one of these sections.
  125. </p>
  126. </dd>
  127. <dt><code>-msdata=sdata</code></dt>
  128. <dd><a name="index-msdata_003dsdata"></a>
  129. <p>Put small global and static data in the small data area, but do not
  130. generate special code to reference them.
  131. </p>
  132. </dd>
  133. <dt><code>-msdata=use</code></dt>
  134. <dd><a name="index-msdata_003duse"></a>
  135. <p>Put small global and static data in the small data area, and generate
  136. special instructions to reference them.
  137. </p>
  138. </dd>
  139. <dt><code>-G <var>num</var></code></dt>
  140. <dd><a name="index-G-1"></a>
  141. <a name="index-smaller-data-references"></a>
  142. <p>Put global and static objects less than or equal to <var>num</var> bytes
  143. into the small data or BSS sections instead of the normal data or BSS
  144. sections. The default value of <var>num</var> is 8.
  145. The <samp>-msdata</samp> option must be set to one of &lsquo;<samp>sdata</samp>&rsquo; or &lsquo;<samp>use</samp>&rsquo;
  146. for this option to have any effect.
  147. </p>
  148. <p>All modules should be compiled with the same <samp>-G <var>num</var></samp> value.
  149. Compiling with different values of <var>num</var> may or may not work; if it
  150. doesn&rsquo;t the linker gives an error message&mdash;incorrect code is not
  151. generated.
  152. </p>
  153. </dd>
  154. <dt><code>-mdebug</code></dt>
  155. <dd><a name="index-mdebug"></a>
  156. <p>Makes the M32R-specific code in the compiler display some statistics
  157. that might help in debugging programs.
  158. </p>
  159. </dd>
  160. <dt><code>-malign-loops</code></dt>
  161. <dd><a name="index-malign_002dloops"></a>
  162. <p>Align all loops to a 32-byte boundary.
  163. </p>
  164. </dd>
  165. <dt><code>-mno-align-loops</code></dt>
  166. <dd><a name="index-mno_002dalign_002dloops"></a>
  167. <p>Do not enforce a 32-byte alignment for loops. This is the default.
  168. </p>
  169. </dd>
  170. <dt><code>-missue-rate=<var>number</var></code></dt>
  171. <dd><a name="index-missue_002drate_003dnumber"></a>
  172. <p>Issue <var>number</var> instructions per cycle. <var>number</var> can only be 1
  173. or 2.
  174. </p>
  175. </dd>
  176. <dt><code>-mbranch-cost=<var>number</var></code></dt>
  177. <dd><a name="index-mbranch_002dcost_003dnumber"></a>
  178. <p><var>number</var> can only be 1 or 2. If it is 1 then branches are
  179. preferred over conditional code, if it is 2, then the opposite applies.
  180. </p>
  181. </dd>
  182. <dt><code>-mflush-trap=<var>number</var></code></dt>
  183. <dd><a name="index-mflush_002dtrap_003dnumber"></a>
  184. <p>Specifies the trap number to use to flush the cache. The default is
  185. 12. Valid numbers are between 0 and 15 inclusive.
  186. </p>
  187. </dd>
  188. <dt><code>-mno-flush-trap</code></dt>
  189. <dd><a name="index-mno_002dflush_002dtrap"></a>
  190. <p>Specifies that the cache cannot be flushed by using a trap.
  191. </p>
  192. </dd>
  193. <dt><code>-mflush-func=<var>name</var></code></dt>
  194. <dd><a name="index-mflush_002dfunc_003dname"></a>
  195. <p>Specifies the name of the operating system function to call to flush
  196. the cache. The default is &lsquo;<samp>_flush_cache</samp>&rsquo;, but a function call
  197. is only used if a trap is not available.
  198. </p>
  199. </dd>
  200. <dt><code>-mno-flush-func</code></dt>
  201. <dd><a name="index-mno_002dflush_002dfunc"></a>
  202. <p>Indicates that there is no OS function for flushing the cache.
  203. </p>
  204. </dd>
  205. </dl>
  206. <hr>
  207. <div class="header">
  208. <p>
  209. Next: <a href="M680x0-Options.html#M680x0-Options" accesskey="n" rel="next">M680x0 Options</a>, Previous: <a href="M32C-Options.html#M32C-Options" accesskey="p" rel="prev">M32C 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>
  210. </div>
  211. </body>
  212. </html>