summaryrefslogtreecommitdiff
path: root/devdocs/gcc~13/cris-options.html
blob: 53ece3b2f480aabbc7f788b56d641eb41150d209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div class="subsection-level-extent" id="CRIS-Options"> <div class="nav-panel"> <p> Next: <a href="c-sky-options" accesskey="n" rel="next">C-SKY Options</a>, Previous: <a href="c6x-options" accesskey="p" rel="prev">C6X Options</a>, Up: <a href="submodel-options" accesskey="u" rel="up">Machine-Dependent Options</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div>  <h1 class="subsection" id="CRIS-Options-1"><span>3.19.9 CRIS Options<a class="copiable-link" href="#CRIS-Options-1"> ¶</a></span></h1>  <p>These options are defined specifically for the CRIS ports. </p> <dl class="table"> <dt>
 <span><code class="code">-march=<var class="var">architecture-type</var></code><a class="copiable-link" href="#index-march-4"> ¶</a></span>
</dt> <dt><code class="code">-mcpu=<var class="var">architecture-type</var></code></dt> <dd>
<p>Generate code for the specified architecture. The choices for <var class="var">architecture-type</var> are ‘<samp class="samp">v3</samp>’, ‘<samp class="samp">v8</samp>’ and ‘<samp class="samp">v10</samp>’ for respectively ETRAX 4, ETRAX 100, and ETRAX 100 LX. Default is ‘<samp class="samp">v0</samp>’. </p> </dd> <dt>
<span><code class="code">-mtune=<var class="var">architecture-type</var></code><a class="copiable-link" href="#index-mtune-5"> ¶</a></span>
</dt> <dd>
<p>Tune to <var class="var">architecture-type</var> everything applicable about the generated code, except for the ABI and the set of available instructions. The choices for <var class="var">architecture-type</var> are the same as for <samp class="option">-march=<var class="var">architecture-type</var></samp>. </p> </dd> <dt>
<span><code class="code">-mmax-stack-frame=<var class="var">n</var></code><a class="copiable-link" href="#index-mmax-stack-frame"> ¶</a></span>
</dt> <dd>
<p>Warn when the stack frame of a function exceeds <var class="var">n</var> bytes. </p> </dd> <dt>
 <span><code class="code">-metrax4</code><a class="copiable-link" href="#index-metrax4"> ¶</a></span>
</dt> <dt><code class="code">-metrax100</code></dt> <dd>
<p>The options <samp class="option">-metrax4</samp> and <samp class="option">-metrax100</samp> are synonyms for <samp class="option">-march=v3</samp> and <samp class="option">-march=v8</samp> respectively. </p> </dd> <dt>
 <span><code class="code">-mmul-bug-workaround</code><a class="copiable-link" href="#index-mmul-bug-workaround"> ¶</a></span>
</dt> <dt><code class="code">-mno-mul-bug-workaround</code></dt> <dd>
<p>Work around a bug in the <code class="code">muls</code> and <code class="code">mulu</code> instructions for CPU models where it applies. This option is disabled by default. </p> </dd> <dt>
<span><code class="code">-mpdebug</code><a class="copiable-link" href="#index-mpdebug"> ¶</a></span>
</dt> <dd>
<p>Enable CRIS-specific verbose debug-related information in the assembly code. This option also has the effect of turning off the ‘<samp class="samp">#NO_APP</samp>’ formatted-code indicator to the assembler at the beginning of the assembly file. </p> </dd> <dt>
<span><code class="code">-mcc-init</code><a class="copiable-link" href="#index-mcc-init"> ¶</a></span>
</dt> <dd>
<p>Do not use condition-code results from previous instruction; always emit compare and test instructions before use of condition codes. </p> </dd> <dt>
 <span><code class="code">-mno-side-effects</code><a class="copiable-link" href="#index-mno-side-effects"> ¶</a></span>
</dt> <dd>
<p>Do not emit instructions with side effects in addressing modes other than post-increment. </p> </dd> <dt>
     <span><code class="code">-mstack-align</code><a class="copiable-link" href="#index-mstack-align"> ¶</a></span>
</dt> <dt><code class="code">-mno-stack-align</code></dt> <dt><code class="code">-mdata-align</code></dt> <dt><code class="code">-mno-data-align</code></dt> <dt><code class="code">-mconst-align</code></dt> <dt><code class="code">-mno-const-align</code></dt> <dd>
<p>These options (‘<samp class="samp">no-</samp>’ options) arrange (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. </p> </dd> <dt>
  <span><code class="code">-m32-bit</code><a class="copiable-link" href="#index-m32-bit"> ¶</a></span>
</dt> <dt><code class="code">-m16-bit</code></dt> <dt><code class="code">-m8-bit</code></dt> <dd>
<p>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. </p> </dd> <dt>
 <span><code class="code">-mno-prologue-epilogue</code><a class="copiable-link" href="#index-mno-prologue-epilogue"> ¶</a></span>
</dt> <dt><code class="code">-mprologue-epilogue</code></dt> <dd>
<p>With <samp class="option">-mno-prologue-epilogue</samp>, the normal function prologue and epilogue which set 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 variables needs to be allocated. </p> </dd> <dt>
<span><code class="code">-melf</code><a class="copiable-link" href="#index-melf"> ¶</a></span>
</dt> <dd>
<p>Legacy no-op option. </p> </dd> <dt>
<span><code class="code">-sim</code><a class="copiable-link" href="#index-sim"> ¶</a></span>
</dt> <dd>
<p>This option arranges to link with input-output functions from a simulator library. Code, initialized data and zero-initialized data are allocated consecutively. </p> </dd> <dt>
<span><code class="code">-sim2</code><a class="copiable-link" href="#index-sim2"> ¶</a></span>
</dt> <dd><p>Like <samp class="option">-sim</samp>, but pass linker options to locate initialized data at 0x40000000 and zero-initialized data at 0x80000000. </p></dd> </dl> </div>  <div class="nav-panel"> <p> Next: <a href="c-sky-options">C-SKY Options</a>, Previous: <a href="c6x-options">C6X Options</a>, Up: <a href="submodel-options">Machine-Dependent Options</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div><div class="_attribution">
  <p class="_attribution-p">
    &copy; Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br>
    <a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/CRIS-Options.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/CRIS-Options.html</a>
  </p>
</div>