<html lang="en">
<head>
<title>CRIS Options - Using the GNU Compiler Collection (GCC)</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using the GNU Compiler Collection (GCC)">
<meta name="generator" content="makeinfo 4.8">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Submodel-Options.html#Submodel-Options" title="Submodel Options">
<link rel="prev" href="Blackfin-Options.html#Blackfin-Options" title="Blackfin Options">
<link rel="next" href="CRX-Options.html#CRX-Options" title="CRX Options">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with the
Invariant Sections being ``GNU General Public License'' and ``Funding
Free Software'', the Front-Cover texts being (a) (see below), and with
the Back-Cover Texts being (b) (see below).  A copy of the license is
included in the section entitled ``GNU Free Documentation License''.

(a) The FSF's Front-Cover Text is:

     A GNU Manual

(b) The FSF's Back-Cover Text is:

     You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
@import url("../raisonance.css");
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<p>
<a name="CRIS-Options"></a>
Next:&nbsp;<a rel="next" accesskey="n" href="CRX-Options.html#CRX-Options">CRX Options</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Blackfin-Options.html#Blackfin-Options">Blackfin Options</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Submodel-Options.html#Submodel-Options">Submodel Options</a>
<hr>
</div>

<h4 class="subsection">3.17.5 CRIS Options</h4>

<p><a name="index-CRIS-Options-798"></a>
These options are defined specifically for the CRIS ports.

     <dl>
<dt><code>-march=</code><var>architecture-type</var><dt><code>-mcpu=</code><var>architecture-type</var><dd><a name="index-march-799"></a><a name="index-mcpu-800"></a>Generate code for the specified architecture.  The choices for
<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
respectively ETRAX&nbsp;<!-- /@w -->4, ETRAX&nbsp;<!-- /@w -->100, and ETRAX&nbsp;<!-- /@w -->100&nbsp;<!-- /@w -->LX. 
Default is `<samp><span class="samp">v0</span></samp>' except for cris-axis-linux-gnu, where the default is
`<samp><span class="samp">v10</span></samp>'.

     <br><dt><code>-mtune=</code><var>architecture-type</var><dd><a name="index-mtune-801"></a>Tune to <var>architecture-type</var> everything applicable about the generated
code, except for the ABI and the set of available instructions.  The
choices for <var>architecture-type</var> are the same as for
<samp><span class="option">-march=</span><var>architecture-type</var></samp>.

     <br><dt><code>-mmax-stack-frame=</code><var>n</var><dd><a name="index-mmax_002dstack_002dframe-802"></a>Warn when the stack frame of a function exceeds <var>n</var> bytes.

     <br><dt><code>-melinux-stacksize=</code><var>n</var><dd><a name="index-melinux_002dstacksize-803"></a>Only available with the `<samp><span class="samp">cris-axis-aout</span></samp>' target.  Arranges for
indications in the program to the kernel loader that the stack of the
program should be set to <var>n</var> bytes.

     <br><dt><code>-metrax4</code><dt><code>-metrax100</code><dd><a name="index-metrax4-804"></a><a name="index-metrax100-805"></a>The options <samp><span class="option">-metrax4</span></samp> and <samp><span class="option">-metrax100</span></samp> are synonyms for
<samp><span class="option">-march=v3</span></samp> and <samp><span class="option">-march=v8</span></samp> respectively.

     <br><dt><code>-mmul-bug-workaround</code><dt><code>-mno-mul-bug-workaround</code><dd><a name="index-mmul_002dbug_002dworkaround-806"></a><a name="index-mno_002dmul_002dbug_002dworkaround-807"></a>Work around a bug in the <code>muls</code> and <code>mulu</code> instructions for CPU
models where it applies.  This option is active by default.

     <br><dt><code>-mpdebug</code><dd><a name="index-mpdebug-808"></a>Enable CRIS-specific verbose debug-related information in the assembly
code.  This option also has the effect to turn off the `<samp><span class="samp">#NO_APP</span></samp>'
formatted-code indicator to the assembler at the beginning of the
assembly file.

     <br><dt><code>-mcc-init</code><dd><a name="index-mcc_002dinit-809"></a>Do not use condition-code results from previous instruction; always emit
compare and test instructions before use of condition codes.

     <br><dt><code>-mno-side-effects</code><dd><a name="index-mno_002dside_002deffects-810"></a>Do not emit instructions with side-effects in addressing modes other than
post-increment.

     <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-811"></a><a name="index-mno_002dstack_002dalign-812"></a><a name="index-mdata_002dalign-813"></a><a name="index-mno_002ddata_002dalign-814"></a><a name="index-mconst_002dalign-815"></a><a name="index-mno_002dconst_002dalign-816"></a>These options (no-options) arranges (eliminate arrangements) for the
stack-frame, individual data and constants to be aligned for the maximum
single data access size for the chosen CPU model.  The default is to
arrange for 32-bit alignment.  ABI details such as structure layout are
not affected by these options.

     <br><dt><code>-m32-bit</code><dt><code>-m16-bit</code><dt><code>-m8-bit</code><dd><a name="index-m32_002dbit-817"></a><a name="index-m16_002dbit-818"></a><a name="index-m8_002dbit-819"></a>Similar to the stack- data- and const-align options above, these options
arrange for stack-frame, writable data and constants to all be 32-bit,
16-bit or 8-bit aligned.  The default is 32-bit alignment.

     <br><dt><code>-mno-prologue-epilogue</code><dt><code>-mprologue-epilogue</code><dd><a name="index-mno_002dprologue_002depilogue-820"></a><a name="index-mprologue_002depilogue-821"></a>With <samp><span class="option">-mno-prologue-epilogue</span></samp>, the normal function prologue and
epilogue that sets up the stack-frame are omitted and no return
instructions or return sequences are generated in the code.  Use this
option only together with visual inspection of the compiled code: no
warnings or errors are generated when call-saved registers must be saved,
or storage for local variable needs to be allocated.

     <br><dt><code>-mno-gotplt</code><dt><code>-mgotplt</code><dd><a name="index-mno_002dgotplt-822"></a><a name="index-mgotplt-823"></a>With <samp><span class="option">-fpic</span></samp> and <samp><span class="option">-fPIC</span></samp>, don't generate (do generate)
instruction sequences that load addresses for functions from the PLT part
of the GOT rather than (traditional on other architectures) calls to the
PLT.  The default is <samp><span class="option">-mgotplt</span></samp>.

     <br><dt><code>-maout</code><dd><a name="index-maout-824"></a>Legacy no-op option only recognized with the cris-axis-aout target.

     <br><dt><code>-melf</code><dd><a name="index-melf-825"></a>Legacy no-op option only recognized with the cris-axis-elf and
cris-axis-linux-gnu targets.

     <br><dt><code>-melinux</code><dd><a name="index-melinux-826"></a>Only recognized with the cris-axis-aout target, where it selects a
GNU/linux-like multilib, include files and instruction set for
<samp><span class="option">-march=v8</span></samp>.

     <br><dt><code>-mlinux</code><dd><a name="index-mlinux-827"></a>Legacy no-op option only recognized with the cris-axis-linux-gnu target.

     <br><dt><code>-sim</code><dd><a name="index-sim-828"></a>This option, recognized for the cris-axis-aout and cris-axis-elf arranges
to link with input-output functions from a simulator library.  Code,
initialized data and zero-initialized data are allocated consecutively.

     <br><dt><code>-sim2</code><dd><a name="index-sim2-829"></a>Like <samp><span class="option">-sim</span></samp>, but pass linker options to locate initialized data at
0x40000000 and zero-initialized data at 0x80000000. 
</dl>

 </body></html>

