1<html lang="en"> 2<head> 3<title>CRIS 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="Blackfin-Options.html#Blackfin-Options" title="Blackfin Options"> 10<link rel="next" href="CRX-Options.html#CRX-Options" title="CRX 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="CRIS-Options"></a> 51<p> 52Next: <a rel="next" accesskey="n" href="CRX-Options.html#CRX-Options">CRX Options</a>, 53Previous: <a rel="previous" accesskey="p" href="Blackfin-Options.html#Blackfin-Options">Blackfin Options</a>, 54Up: <a rel="up" accesskey="u" href="Submodel-Options.html#Submodel-Options">Submodel Options</a> 55<hr> 56</div> 57 58<h4 class="subsection">3.17.5 CRIS Options</h4> 59 60<p><a name="index-CRIS-Options-1100"></a> 61These options are defined specifically for the CRIS ports. 62 63 <dl> 64<dt><code>-march=</code><var>architecture-type</var><dt><code>-mcpu=</code><var>architecture-type</var><dd><a name="index-march-1101"></a><a name="index-mcpu-1102"></a>Generate code for the specified architecture. The choices for 65<var>architecture-type</var> are ‘<samp><span class="samp">v3</span></samp>’, ‘<samp><span class="samp">v8</span></samp>’ and ‘<samp><span class="samp">v10</span></samp>’ for 66respectively ETRAX <!-- /@w -->4, ETRAX <!-- /@w -->100, and ETRAX <!-- /@w -->100 <!-- /@w -->LX. 67Default is ‘<samp><span class="samp">v0</span></samp>’ except for cris-axis-linux-gnu, where the default is 68‘<samp><span class="samp">v10</span></samp>’. 69 70 <br><dt><code>-mtune=</code><var>architecture-type</var><dd><a name="index-mtune-1103"></a>Tune to <var>architecture-type</var> everything applicable about the generated 71code, except for the ABI and the set of available instructions. The 72choices for <var>architecture-type</var> are the same as for 73<samp><span class="option">-march=</span><var>architecture-type</var></samp>. 74 75 <br><dt><code>-mmax-stack-frame=</code><var>n</var><dd><a name="index-mmax_002dstack_002dframe-1104"></a>Warn when the stack frame of a function exceeds <var>n</var> bytes. 76 77 <br><dt><code>-metrax4</code><dt><code>-metrax100</code><dd><a name="index-metrax4-1105"></a><a name="index-metrax100-1106"></a>The options <samp><span class="option">-metrax4</span></samp> and <samp><span class="option">-metrax100</span></samp> are synonyms for 78<samp><span class="option">-march=v3</span></samp> and <samp><span class="option">-march=v8</span></samp> respectively. 79 80 <br><dt><code>-mmul-bug-workaround</code><dt><code>-mno-mul-bug-workaround</code><dd><a name="index-mmul_002dbug_002dworkaround-1107"></a><a name="index-mno_002dmul_002dbug_002dworkaround-1108"></a>Work around a bug in the <code>muls</code> and <code>mulu</code> instructions for CPU 81models where it applies. This option is active by default. 82 83 <br><dt><code>-mpdebug</code><dd><a name="index-mpdebug-1109"></a>Enable CRIS-specific verbose debug-related information in the assembly 84code. This option also has the effect to turn off the ‘<samp><span class="samp">#NO_APP</span></samp>’ 85formatted-code indicator to the assembler at the beginning of the 86assembly file. 87 88 <br><dt><code>-mcc-init</code><dd><a name="index-mcc_002dinit-1110"></a>Do not use condition-code results from previous instruction; always emit 89compare and test instructions before use of condition codes. 90 91 <br><dt><code>-mno-side-effects</code><dd><a name="index-mno_002dside_002deffects-1111"></a>Do not emit instructions with side-effects in addressing modes other than 92post-increment. 93 94 <br><dt><code>-mstack-align</code><dt><code>-mno-stack-align</code><dt><code>-mdata-align</code><dt><code>-mno-data-align</code><dt><code>-mconst-align</code><dt><code>-mno-const-align</code><dd><a name="index-mstack_002dalign-1112"></a><a name="index-mno_002dstack_002dalign-1113"></a><a name="index-mdata_002dalign-1114"></a><a name="index-mno_002ddata_002dalign-1115"></a><a name="index-mconst_002dalign-1116"></a><a name="index-mno_002dconst_002dalign-1117"></a>These options (no-options) arranges (eliminate arrangements) for the 95stack-frame, individual data and constants to be aligned for the maximum 96single data access size for the chosen CPU model. The default is to 97arrange for 32-bit alignment. ABI details such as structure layout are 98not affected by these options. 99 100 <br><dt><code>-m32-bit</code><dt><code>-m16-bit</code><dt><code>-m8-bit</code><dd><a name="index-m32_002dbit-1118"></a><a name="index-m16_002dbit-1119"></a><a name="index-m8_002dbit-1120"></a>Similar to the stack- data- and const-align options above, these options 101arrange for stack-frame, writable data and constants to all be 32-bit, 10216-bit or 8-bit aligned. The default is 32-bit alignment. 103 104 <br><dt><code>-mno-prologue-epilogue</code><dt><code>-mprologue-epilogue</code><dd><a name="index-mno_002dprologue_002depilogue-1121"></a><a name="index-mprologue_002depilogue-1122"></a>With <samp><span class="option">-mno-prologue-epilogue</span></samp>, the normal function prologue and 105epilogue that sets up the stack-frame are omitted and no return 106instructions or return sequences are generated in the code. Use this 107option only together with visual inspection of the compiled code: no 108warnings or errors are generated when call-saved registers must be saved, 109or storage for local variable needs to be allocated. 110 111 <br><dt><code>-mno-gotplt</code><dt><code>-mgotplt</code><dd><a name="index-mno_002dgotplt-1123"></a><a name="index-mgotplt-1124"></a>With <samp><span class="option">-fpic</span></samp> and <samp><span class="option">-fPIC</span></samp>, don't generate (do generate) 112instruction sequences that load addresses for functions from the PLT part 113of the GOT rather than (traditional on other architectures) calls to the 114PLT. The default is <samp><span class="option">-mgotplt</span></samp>. 115 116 <br><dt><code>-melf</code><dd><a name="index-melf-1125"></a>Legacy no-op option only recognized with the cris-axis-elf and 117cris-axis-linux-gnu targets. 118 119 <br><dt><code>-mlinux</code><dd><a name="index-mlinux-1126"></a>Legacy no-op option only recognized with the cris-axis-linux-gnu target. 120 121 <br><dt><code>-sim</code><dd><a name="index-sim-1127"></a>This option, recognized for the cris-axis-elf arranges 122to link with input-output functions from a simulator library. Code, 123initialized data and zero-initialized data are allocated consecutively. 124 125 <br><dt><code>-sim2</code><dd><a name="index-sim2-1128"></a>Like <samp><span class="option">-sim</span></samp>, but pass linker options to locate initialized data at 1260x40000000 and zero-initialized data at 0x80000000. 127</dl> 128 129 </body></html> 130 131