1<html lang="en"> 2<head> 3<title>M32R/D Options - Using the GNU Compiler Collection (GCC)</title> 4<meta http-equiv="Content-Type" content="text/html"> 5<meta name="description" content="Using the GNU Compiler Collection (GCC)"> 6<meta name="generator" content="makeinfo 4.13"> 7<link title="Top" rel="start" href="index.html#Top"> 8<link rel="up" href="Submodel-Options.html#Submodel-Options" title="Submodel Options"> 9<link rel="prev" href="M32C-Options.html#M32C-Options" title="M32C Options"> 10<link rel="next" href="M680x0-Options.html#M680x0-Options" title="M680x0 Options"> 11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> 12<!-- 13Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 141998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 152010 Free Software Foundation, Inc. 16 17Permission is granted to copy, distribute and/or modify this document 18under the terms of the GNU Free Documentation License, Version 1.3 or 19any later version published by the Free Software Foundation; with the 20Invariant Sections being ``Funding Free Software'', the Front-Cover 21Texts being (a) (see below), and with the Back-Cover Texts being (b) 22(see below). A copy of the license is included in the section entitled 23``GNU Free Documentation License''. 24 25(a) The FSF's Front-Cover Text is: 26 27 A GNU Manual 28 29(b) The FSF's Back-Cover Text is: 30 31 You have freedom to copy and modify this GNU Manual, like GNU 32 software. Copies published by the Free Software Foundation raise 33 funds for GNU development.--> 34<meta http-equiv="Content-Style-Type" content="text/css"> 35<style type="text/css"><!-- 36 pre.display { font-family:inherit } 37 pre.format { font-family:inherit } 38 pre.smalldisplay { font-family:inherit; font-size:smaller } 39 pre.smallformat { font-family:inherit; font-size:smaller } 40 pre.smallexample { font-size:smaller } 41 pre.smalllisp { font-size:smaller } 42 span.sc { font-variant:small-caps } 43 span.roman { font-family:serif; font-weight:normal; } 44 span.sansserif { font-family:sans-serif; font-weight:normal; } 45--></style> 46<link rel="stylesheet" type="text/css" href="../cs.css"> 47</head> 48<body> 49<div class="node"> 50<a name="M32R%2fD-Options"></a> 51<a name="M32R_002fD-Options"></a> 52<p> 53Next: <a rel="next" accesskey="n" href="M680x0-Options.html#M680x0-Options">M680x0 Options</a>, 54Previous: <a rel="previous" accesskey="p" href="M32C-Options.html#M32C-Options">M32C Options</a>, 55Up: <a rel="up" accesskey="u" href="Submodel-Options.html#Submodel-Options">Submodel Options</a> 56<hr> 57</div> 58 59<h4 class="subsection">3.17.21 M32R/D Options</h4> 60 61<p><a name="index-M32R_002fD-options-1482"></a> 62These <samp><span class="option">-m</span></samp> options are defined for Renesas M32R/D architectures: 63 64 <dl> 65<dt><code>-m32r2</code><dd><a name="index-m32r2-1483"></a>Generate code for the M32R/2. 66 67 <br><dt><code>-m32rx</code><dd><a name="index-m32rx-1484"></a>Generate code for the M32R/X. 68 69 <br><dt><code>-m32r</code><dd><a name="index-m32r-1485"></a>Generate code for the M32R. This is the default. 70 71 <br><dt><code>-mmodel=small</code><dd><a name="index-mmodel_003dsmall-1486"></a>Assume all objects live in the lower 16MB of memory (so that their addresses 72can be loaded with the <code>ld24</code> instruction), and assume all subroutines 73are reachable with the <code>bl</code> instruction. 74This is the default. 75 76 <p>The addressability of a particular object can be set with the 77<code>model</code> attribute. 78 79 <br><dt><code>-mmodel=medium</code><dd><a name="index-mmodel_003dmedium-1487"></a>Assume objects may be anywhere in the 32-bit address space (the compiler 80will generate <code>seth/add3</code> instructions to load their addresses), and 81assume all subroutines are reachable with the <code>bl</code> instruction. 82 83 <br><dt><code>-mmodel=large</code><dd><a name="index-mmodel_003dlarge-1488"></a>Assume objects may be anywhere in the 32-bit address space (the compiler 84will generate <code>seth/add3</code> instructions to load their addresses), and 85assume subroutines may not be reachable with the <code>bl</code> instruction 86(the compiler will generate the much slower <code>seth/add3/jl</code> 87instruction sequence). 88 89 <br><dt><code>-msdata=none</code><dd><a name="index-msdata_003dnone-1489"></a>Disable use of the small data area. Variables will be put into 90one of ‘<samp><span class="samp">.data</span></samp>’, ‘<samp><span class="samp">bss</span></samp>’, or ‘<samp><span class="samp">.rodata</span></samp>’ (unless the 91<code>section</code> attribute has been specified). 92This is the default. 93 94 <p>The small data area consists of sections ‘<samp><span class="samp">.sdata</span></samp>’ and ‘<samp><span class="samp">.sbss</span></samp>’. 95Objects may be explicitly put in the small data area with the 96<code>section</code> attribute using one of these sections. 97 98 <br><dt><code>-msdata=sdata</code><dd><a name="index-msdata_003dsdata-1490"></a>Put small global and static data in the small data area, but do not 99generate special code to reference them. 100 101 <br><dt><code>-msdata=use</code><dd><a name="index-msdata_003duse-1491"></a>Put small global and static data in the small data area, and generate 102special instructions to reference them. 103 104 <br><dt><code>-G </code><var>num</var><dd><a name="index-G-1492"></a><a name="index-smaller-data-references-1493"></a>Put global and static objects less than or equal to <var>num</var> bytes 105into the small data or bss sections instead of the normal data or bss 106sections. The default value of <var>num</var> is 8. 107The <samp><span class="option">-msdata</span></samp> option must be set to one of ‘<samp><span class="samp">sdata</span></samp>’ or ‘<samp><span class="samp">use</span></samp>’ 108for this option to have any effect. 109 110 <p>All modules should be compiled with the same <samp><span class="option">-G </span><var>num</var></samp> value. 111Compiling with different values of <var>num</var> may or may not work; if it 112doesn't the linker will give an error message—incorrect code will not be 113generated. 114 115 <br><dt><code>-mdebug</code><dd><a name="index-mdebug-1494"></a>Makes the M32R specific code in the compiler display some statistics 116that might help in debugging programs. 117 118 <br><dt><code>-malign-loops</code><dd><a name="index-malign_002dloops-1495"></a>Align all loops to a 32-byte boundary. 119 120 <br><dt><code>-mno-align-loops</code><dd><a name="index-mno_002dalign_002dloops-1496"></a>Do not enforce a 32-byte alignment for loops. This is the default. 121 122 <br><dt><code>-missue-rate=</code><var>number</var><dd><a name="index-missue_002drate_003d_0040var_007bnumber_007d-1497"></a>Issue <var>number</var> instructions per cycle. <var>number</var> can only be 1 123or 2. 124 125 <br><dt><code>-mbranch-cost=</code><var>number</var><dd><a name="index-mbranch_002dcost_003d_0040var_007bnumber_007d-1498"></a><var>number</var> can only be 1 or 2. If it is 1 then branches will be 126preferred over conditional code, if it is 2, then the opposite will 127apply. 128 129 <br><dt><code>-mflush-trap=</code><var>number</var><dd><a name="index-mflush_002dtrap_003d_0040var_007bnumber_007d-1499"></a>Specifies the trap number to use to flush the cache. The default is 13012. Valid numbers are between 0 and 15 inclusive. 131 132 <br><dt><code>-mno-flush-trap</code><dd><a name="index-mno_002dflush_002dtrap-1500"></a>Specifies that the cache cannot be flushed by using a trap. 133 134 <br><dt><code>-mflush-func=</code><var>name</var><dd><a name="index-mflush_002dfunc_003d_0040var_007bname_007d-1501"></a>Specifies the name of the operating system function to call to flush 135the cache. The default is <em>_flush_cache</em>, but a function call 136will only be used if a trap is not available. 137 138 <br><dt><code>-mno-flush-func</code><dd><a name="index-mno_002dflush_002dfunc-1502"></a>Indicates that there is no OS function for flushing the cache. 139 140 </dl> 141 142 </body></html> 143 144