Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

447 lines
14KB

  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>FRV Options (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="FRV Options (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="FRV 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="GNU_002fLinux-Options.html#GNU_002fLinux-Options" rel="next" title="GNU/Linux Options">
  31. <link href="FT32-Options.html#FT32-Options" rel="prev" title="FT32 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="FRV-Options"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="GNU_002fLinux-Options.html#GNU_002fLinux-Options" accesskey="n" rel="next">GNU/Linux Options</a>, Previous: <a href="FT32-Options.html#FT32-Options" accesskey="p" rel="prev">FT32 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="FRV-Options-1"></a>
  68. <h4 class="subsection">3.19.17 FRV Options</h4>
  69. <a name="index-FRV-Options"></a>
  70. <dl compact="compact">
  71. <dt><code>-mgpr-32</code></dt>
  72. <dd><a name="index-mgpr_002d32"></a>
  73. <p>Only use the first 32 general-purpose registers.
  74. </p>
  75. </dd>
  76. <dt><code>-mgpr-64</code></dt>
  77. <dd><a name="index-mgpr_002d64"></a>
  78. <p>Use all 64 general-purpose registers.
  79. </p>
  80. </dd>
  81. <dt><code>-mfpr-32</code></dt>
  82. <dd><a name="index-mfpr_002d32"></a>
  83. <p>Use only the first 32 floating-point registers.
  84. </p>
  85. </dd>
  86. <dt><code>-mfpr-64</code></dt>
  87. <dd><a name="index-mfpr_002d64"></a>
  88. <p>Use all 64 floating-point registers.
  89. </p>
  90. </dd>
  91. <dt><code>-mhard-float</code></dt>
  92. <dd><a name="index-mhard_002dfloat-1"></a>
  93. <p>Use hardware instructions for floating-point operations.
  94. </p>
  95. </dd>
  96. <dt><code>-msoft-float</code></dt>
  97. <dd><a name="index-msoft_002dfloat-3"></a>
  98. <p>Use library routines for floating-point operations.
  99. </p>
  100. </dd>
  101. <dt><code>-malloc-cc</code></dt>
  102. <dd><a name="index-malloc_002dcc"></a>
  103. <p>Dynamically allocate condition code registers.
  104. </p>
  105. </dd>
  106. <dt><code>-mfixed-cc</code></dt>
  107. <dd><a name="index-mfixed_002dcc"></a>
  108. <p>Do not try to dynamically allocate condition code registers, only
  109. use <code>icc0</code> and <code>fcc0</code>.
  110. </p>
  111. </dd>
  112. <dt><code>-mdword</code></dt>
  113. <dd><a name="index-mdword"></a>
  114. <p>Change ABI to use double word insns.
  115. </p>
  116. </dd>
  117. <dt><code>-mno-dword</code></dt>
  118. <dd><a name="index-mno_002ddword"></a>
  119. <a name="index-mdword-1"></a>
  120. <p>Do not use double word instructions.
  121. </p>
  122. </dd>
  123. <dt><code>-mdouble</code></dt>
  124. <dd><a name="index-mdouble-1"></a>
  125. <p>Use floating-point double instructions.
  126. </p>
  127. </dd>
  128. <dt><code>-mno-double</code></dt>
  129. <dd><a name="index-mno_002ddouble"></a>
  130. <p>Do not use floating-point double instructions.
  131. </p>
  132. </dd>
  133. <dt><code>-mmedia</code></dt>
  134. <dd><a name="index-mmedia"></a>
  135. <p>Use media instructions.
  136. </p>
  137. </dd>
  138. <dt><code>-mno-media</code></dt>
  139. <dd><a name="index-mno_002dmedia"></a>
  140. <p>Do not use media instructions.
  141. </p>
  142. </dd>
  143. <dt><code>-mmuladd</code></dt>
  144. <dd><a name="index-mmuladd"></a>
  145. <p>Use multiply and add/subtract instructions.
  146. </p>
  147. </dd>
  148. <dt><code>-mno-muladd</code></dt>
  149. <dd><a name="index-mno_002dmuladd"></a>
  150. <p>Do not use multiply and add/subtract instructions.
  151. </p>
  152. </dd>
  153. <dt><code>-mfdpic</code></dt>
  154. <dd><a name="index-mfdpic-1"></a>
  155. <p>Select the FDPIC ABI, which uses function descriptors to represent
  156. pointers to functions. Without any PIC/PIE-related options, it
  157. implies <samp>-fPIE</samp>. With <samp>-fpic</samp> or <samp>-fpie</samp>, it
  158. assumes GOT entries and small data are within a 12-bit range from the
  159. GOT base address; with <samp>-fPIC</samp> or <samp>-fPIE</samp>, GOT offsets
  160. are computed with 32 bits.
  161. With a &lsquo;<samp>bfin-elf</samp>&rsquo; target, this option implies <samp>-msim</samp>.
  162. </p>
  163. </dd>
  164. <dt><code>-minline-plt</code></dt>
  165. <dd><a name="index-minline_002dplt-1"></a>
  166. <p>Enable inlining of PLT entries in function calls to functions that are
  167. not known to bind locally. It has no effect without <samp>-mfdpic</samp>.
  168. It&rsquo;s enabled by default if optimizing for speed and compiling for
  169. shared libraries (i.e., <samp>-fPIC</samp> or <samp>-fpic</samp>), or when an
  170. optimization option such as <samp>-O3</samp> or above is present in the
  171. command line.
  172. </p>
  173. </dd>
  174. <dt><code>-mTLS</code></dt>
  175. <dd><a name="index-mTLS"></a>
  176. <p>Assume a large TLS segment when generating thread-local code.
  177. </p>
  178. </dd>
  179. <dt><code>-mtls</code></dt>
  180. <dd><a name="index-mtls"></a>
  181. <p>Do not assume a large TLS segment when generating thread-local code.
  182. </p>
  183. </dd>
  184. <dt><code>-mgprel-ro</code></dt>
  185. <dd><a name="index-mgprel_002dro"></a>
  186. <p>Enable the use of <code>GPREL</code> relocations in the FDPIC ABI for data
  187. that is known to be in read-only sections. It&rsquo;s enabled by default,
  188. except for <samp>-fpic</samp> or <samp>-fpie</samp>: even though it may help
  189. make the global offset table smaller, it trades 1 instruction for 4.
  190. With <samp>-fPIC</samp> or <samp>-fPIE</samp>, it trades 3 instructions for 4,
  191. one of which may be shared by multiple symbols, and it avoids the need
  192. for a GOT entry for the referenced symbol, so it&rsquo;s more likely to be a
  193. win. If it is not, <samp>-mno-gprel-ro</samp> can be used to disable it.
  194. </p>
  195. </dd>
  196. <dt><code>-multilib-library-pic</code></dt>
  197. <dd><a name="index-multilib_002dlibrary_002dpic"></a>
  198. <p>Link with the (library, not FD) pic libraries. It&rsquo;s implied by
  199. <samp>-mlibrary-pic</samp>, as well as by <samp>-fPIC</samp> and
  200. <samp>-fpic</samp> without <samp>-mfdpic</samp>. You should never have to use
  201. it explicitly.
  202. </p>
  203. </dd>
  204. <dt><code>-mlinked-fp</code></dt>
  205. <dd><a name="index-mlinked_002dfp"></a>
  206. <p>Follow the EABI requirement of always creating a frame pointer whenever
  207. a stack frame is allocated. This option is enabled by default and can
  208. be disabled with <samp>-mno-linked-fp</samp>.
  209. </p>
  210. </dd>
  211. <dt><code>-mlong-calls</code></dt>
  212. <dd><a name="index-mlong_002dcalls-4"></a>
  213. <p>Use indirect addressing to call functions outside the current
  214. compilation unit. This allows the functions to be placed anywhere
  215. within the 32-bit address space.
  216. </p>
  217. </dd>
  218. <dt><code>-malign-labels</code></dt>
  219. <dd><a name="index-malign_002dlabels"></a>
  220. <p>Try to align labels to an 8-byte boundary by inserting NOPs into the
  221. previous packet. This option only has an effect when VLIW packing
  222. is enabled. It doesn&rsquo;t create new packets; it merely adds NOPs to
  223. existing ones.
  224. </p>
  225. </dd>
  226. <dt><code>-mlibrary-pic</code></dt>
  227. <dd><a name="index-mlibrary_002dpic"></a>
  228. <p>Generate position-independent EABI code.
  229. </p>
  230. </dd>
  231. <dt><code>-macc-4</code></dt>
  232. <dd><a name="index-macc_002d4"></a>
  233. <p>Use only the first four media accumulator registers.
  234. </p>
  235. </dd>
  236. <dt><code>-macc-8</code></dt>
  237. <dd><a name="index-macc_002d8"></a>
  238. <p>Use all eight media accumulator registers.
  239. </p>
  240. </dd>
  241. <dt><code>-mpack</code></dt>
  242. <dd><a name="index-mpack"></a>
  243. <p>Pack VLIW instructions.
  244. </p>
  245. </dd>
  246. <dt><code>-mno-pack</code></dt>
  247. <dd><a name="index-mno_002dpack"></a>
  248. <p>Do not pack VLIW instructions.
  249. </p>
  250. </dd>
  251. <dt><code>-mno-eflags</code></dt>
  252. <dd><a name="index-mno_002deflags"></a>
  253. <p>Do not mark ABI switches in e_flags.
  254. </p>
  255. </dd>
  256. <dt><code>-mcond-move</code></dt>
  257. <dd><a name="index-mcond_002dmove"></a>
  258. <p>Enable the use of conditional-move instructions (default).
  259. </p>
  260. <p>This switch is mainly for debugging the compiler and will likely be removed
  261. in a future version.
  262. </p>
  263. </dd>
  264. <dt><code>-mno-cond-move</code></dt>
  265. <dd><a name="index-mno_002dcond_002dmove"></a>
  266. <p>Disable the use of conditional-move instructions.
  267. </p>
  268. <p>This switch is mainly for debugging the compiler and will likely be removed
  269. in a future version.
  270. </p>
  271. </dd>
  272. <dt><code>-mscc</code></dt>
  273. <dd><a name="index-mscc"></a>
  274. <p>Enable the use of conditional set instructions (default).
  275. </p>
  276. <p>This switch is mainly for debugging the compiler and will likely be removed
  277. in a future version.
  278. </p>
  279. </dd>
  280. <dt><code>-mno-scc</code></dt>
  281. <dd><a name="index-mno_002dscc"></a>
  282. <p>Disable the use of conditional set instructions.
  283. </p>
  284. <p>This switch is mainly for debugging the compiler and will likely be removed
  285. in a future version.
  286. </p>
  287. </dd>
  288. <dt><code>-mcond-exec</code></dt>
  289. <dd><a name="index-mcond_002dexec"></a>
  290. <p>Enable the use of conditional execution (default).
  291. </p>
  292. <p>This switch is mainly for debugging the compiler and will likely be removed
  293. in a future version.
  294. </p>
  295. </dd>
  296. <dt><code>-mno-cond-exec</code></dt>
  297. <dd><a name="index-mno_002dcond_002dexec-1"></a>
  298. <p>Disable the use of conditional execution.
  299. </p>
  300. <p>This switch is mainly for debugging the compiler and will likely be removed
  301. in a future version.
  302. </p>
  303. </dd>
  304. <dt><code>-mvliw-branch</code></dt>
  305. <dd><a name="index-mvliw_002dbranch"></a>
  306. <p>Run a pass to pack branches into VLIW instructions (default).
  307. </p>
  308. <p>This switch is mainly for debugging the compiler and will likely be removed
  309. in a future version.
  310. </p>
  311. </dd>
  312. <dt><code>-mno-vliw-branch</code></dt>
  313. <dd><a name="index-mno_002dvliw_002dbranch"></a>
  314. <p>Do not run a pass to pack branches into VLIW instructions.
  315. </p>
  316. <p>This switch is mainly for debugging the compiler and will likely be removed
  317. in a future version.
  318. </p>
  319. </dd>
  320. <dt><code>-mmulti-cond-exec</code></dt>
  321. <dd><a name="index-mmulti_002dcond_002dexec"></a>
  322. <p>Enable optimization of <code>&amp;&amp;</code> and <code>||</code> in conditional execution
  323. (default).
  324. </p>
  325. <p>This switch is mainly for debugging the compiler and will likely be removed
  326. in a future version.
  327. </p>
  328. </dd>
  329. <dt><code>-mno-multi-cond-exec</code></dt>
  330. <dd><a name="index-mno_002dmulti_002dcond_002dexec"></a>
  331. <p>Disable optimization of <code>&amp;&amp;</code> and <code>||</code> in conditional execution.
  332. </p>
  333. <p>This switch is mainly for debugging the compiler and will likely be removed
  334. in a future version.
  335. </p>
  336. </dd>
  337. <dt><code>-mnested-cond-exec</code></dt>
  338. <dd><a name="index-mnested_002dcond_002dexec"></a>
  339. <p>Enable nested conditional execution optimizations (default).
  340. </p>
  341. <p>This switch is mainly for debugging the compiler and will likely be removed
  342. in a future version.
  343. </p>
  344. </dd>
  345. <dt><code>-mno-nested-cond-exec</code></dt>
  346. <dd><a name="index-mno_002dnested_002dcond_002dexec"></a>
  347. <p>Disable nested conditional execution optimizations.
  348. </p>
  349. <p>This switch is mainly for debugging the compiler and will likely be removed
  350. in a future version.
  351. </p>
  352. </dd>
  353. <dt><code>-moptimize-membar</code></dt>
  354. <dd><a name="index-moptimize_002dmembar"></a>
  355. <p>This switch removes redundant <code>membar</code> instructions from the
  356. compiler-generated code. It is enabled by default.
  357. </p>
  358. </dd>
  359. <dt><code>-mno-optimize-membar</code></dt>
  360. <dd><a name="index-mno_002doptimize_002dmembar"></a>
  361. <a name="index-moptimize_002dmembar-1"></a>
  362. <p>This switch disables the automatic removal of redundant <code>membar</code>
  363. instructions from the generated code.
  364. </p>
  365. </dd>
  366. <dt><code>-mtomcat-stats</code></dt>
  367. <dd><a name="index-mtomcat_002dstats"></a>
  368. <p>Cause gas to print out tomcat statistics.
  369. </p>
  370. </dd>
  371. <dt><code>-mcpu=<var>cpu</var></code></dt>
  372. <dd><a name="index-mcpu-5"></a>
  373. <p>Select the processor type for which to generate code. Possible values are
  374. &lsquo;<samp>frv</samp>&rsquo;, &lsquo;<samp>fr550</samp>&rsquo;, &lsquo;<samp>tomcat</samp>&rsquo;, &lsquo;<samp>fr500</samp>&rsquo;, &lsquo;<samp>fr450</samp>&rsquo;,
  375. &lsquo;<samp>fr405</samp>&rsquo;, &lsquo;<samp>fr400</samp>&rsquo;, &lsquo;<samp>fr300</samp>&rsquo; and &lsquo;<samp>simple</samp>&rsquo;.
  376. </p>
  377. </dd>
  378. </dl>
  379. <hr>
  380. <div class="header">
  381. <p>
  382. Next: <a href="GNU_002fLinux-Options.html#GNU_002fLinux-Options" accesskey="n" rel="next">GNU/Linux Options</a>, Previous: <a href="FT32-Options.html#FT32-Options" accesskey="p" rel="prev">FT32 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>
  383. </div>
  384. </body>
  385. </html>