| <html lang="en"> |
| <head> |
| <title>C6X 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.13"> |
| <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="CRIS-Options.html#CRIS-Options" title="CRIS Options"> |
| <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> |
| <!-- |
| Copyright (C) 1988-2013 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.3 or |
| any later version published by the Free Software Foundation; with the |
| Invariant Sections being ``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"><!-- |
| 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"> |
| <a name="C6X-Options"></a> |
| <p> |
| Next: <a rel="next" accesskey="n" href="CRIS-Options.html#CRIS-Options">CRIS Options</a>, |
| Previous: <a rel="previous" accesskey="p" href="Blackfin-Options.html#Blackfin-Options">Blackfin Options</a>, |
| Up: <a rel="up" accesskey="u" href="Submodel-Options.html#Submodel-Options">Submodel Options</a> |
| <hr> |
| </div> |
| |
| <h4 class="subsection">3.17.6 C6X Options</h4> |
| |
| <p><a name="index-C6X-Options-1195"></a> |
| <dl> |
| <dt><code>-march=</code><var>name</var><dd><a name="index-march-1196"></a>This specifies the name of the target architecture. GCC uses this |
| name to determine what kind of instructions it can emit when generating |
| assembly code. Permissible names are: ‘<samp><span class="samp">c62x</span></samp>’, |
| ‘<samp><span class="samp">c64x</span></samp>’, ‘<samp><span class="samp">c64x+</span></samp>’, ‘<samp><span class="samp">c67x</span></samp>’, ‘<samp><span class="samp">c67x+</span></samp>’, ‘<samp><span class="samp">c674x</span></samp>’. |
| |
| <br><dt><code>-mbig-endian</code><dd><a name="index-mbig_002dendian-1197"></a>Generate code for a big-endian target. |
| |
| <br><dt><code>-mlittle-endian</code><dd><a name="index-mlittle_002dendian-1198"></a>Generate code for a little-endian target. This is the default. |
| |
| <br><dt><code>-msim</code><dd><a name="index-msim-1199"></a>Choose startup files and linker script suitable for the simulator. |
| |
| <br><dt><code>-msdata=default</code><dd><a name="index-msdata_003ddefault-1200"></a>Put small global and static data in the ‘<samp><span class="samp">.neardata</span></samp>’ section, |
| which is pointed to by register <code>B14</code>. Put small uninitialized |
| global and static data in the ‘<samp><span class="samp">.bss</span></samp>’ section, which is adjacent |
| to the ‘<samp><span class="samp">.neardata</span></samp>’ section. Put small read-only data into the |
| ‘<samp><span class="samp">.rodata</span></samp>’ section. The corresponding sections used for large |
| pieces of data are ‘<samp><span class="samp">.fardata</span></samp>’, ‘<samp><span class="samp">.far</span></samp>’ and ‘<samp><span class="samp">.const</span></samp>’. |
| |
| <br><dt><code>-msdata=all</code><dd><a name="index-msdata_003dall-1201"></a>Put all data, not just small objects, into the sections reserved for |
| small data, and use addressing relative to the <code>B14</code> register to |
| access them. |
| |
| <br><dt><code>-msdata=none</code><dd><a name="index-msdata_003dnone-1202"></a>Make no use of the sections reserved for small data, and use absolute |
| addresses to access all data. Put all initialized global and static |
| data in the ‘<samp><span class="samp">.fardata</span></samp>’ section, and all uninitialized data in the |
| ‘<samp><span class="samp">.far</span></samp>’ section. Put all constant data into the ‘<samp><span class="samp">.const</span></samp>’ |
| section. |
| </dl> |
| |
| </body></html> |
| |