neingeist
/
arduinisten
Archived
1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

94 lines
5.5 KiB
HTML

<html lang="en">
<head>
<title>Xtensa Options - Using as</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using as">
<meta name="generator" content="makeinfo 4.7">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Xtensa_002dDependent.html#Xtensa_002dDependent" title="Xtensa-Dependent">
<link rel="next" href="Xtensa-Syntax.html#Xtensa-Syntax" title="Xtensa Syntax">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This file documents the GNU Assembler "as".
Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, 2002,
2006, 2007 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.1
or any later version published by the Free Software Foundation;
with no Invariant Sections, with no Front-Cover Texts, and with no
Back-Cover Texts. A copy of the license is included in the
section entitled ``GNU Free Documentation License''.
man end-->
<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; }
--></style>
</head>
<body>
<div class="node">
<p>
<a name="Xtensa-Options"></a>Next:&nbsp;<a rel="next" accesskey="n" href="Xtensa-Syntax.html#Xtensa-Syntax">Xtensa Syntax</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Xtensa_002dDependent.html#Xtensa_002dDependent">Xtensa-Dependent</a>
<hr><br>
</div>
<h4 class="subsection">9.36.1 Command Line Options</h4>
<p>The Xtensa version of the <span class="sc">gnu</span> assembler supports these
special options:
<dl>
<dt><code>--text-section-literals | --no-text-section-literals</code><dd><a name="index-_002d_002dtext_002dsection_002dliterals-1837"></a><a name="index-_002d_002dno_002dtext_002dsection_002dliterals-1838"></a>Control the treatment of literal pools. The default is
<span class="samp">--no-text-section-literals</span>, which places literals in
separate sections in the output file. This allows the literal pool to be
placed in a data RAM/ROM. With <span class="samp">--text-section-literals</span>, the
literals are interspersed in the text section in order to keep them as
close as possible to their references. This may be necessary for large
assembly files, where the literals would otherwise be out of range of the
<code>L32R</code> instructions in the text section. These options only affect
literals referenced via PC-relative <code>L32R</code> instructions; literals
for absolute mode <code>L32R</code> instructions are handled separately.
See <a href="Literal-Directive.html#Literal-Directive">literal</a>.
<br><dt><code>--absolute-literals | --no-absolute-literals</code><dd><a name="index-_002d_002dabsolute_002dliterals-1839"></a><a name="index-_002d_002dno_002dabsolute_002dliterals-1840"></a>Indicate to the assembler whether <code>L32R</code> instructions use absolute
or PC-relative addressing. If the processor includes the absolute
addressing option, the default is to use absolute <code>L32R</code>
relocations. Otherwise, only the PC-relative <code>L32R</code> relocations
can be used.
<br><dt><code>--target-align | --no-target-align</code><dd><a name="index-_002d_002dtarget_002dalign-1841"></a><a name="index-_002d_002dno_002dtarget_002dalign-1842"></a>Enable or disable automatic alignment to reduce branch penalties at some
expense in code size. See <a href="Xtensa-Automatic-Alignment.html#Xtensa-Automatic-Alignment">Automatic Instruction Alignment</a>. This optimization is enabled by default. Note
that the assembler will always align instructions like <code>LOOP</code> that
have fixed alignment requirements.
<br><dt><code>--longcalls | --no-longcalls</code><dd><a name="index-_002d_002dlongcalls-1843"></a><a name="index-_002d_002dno_002dlongcalls-1844"></a>Enable or disable transformation of call instructions to allow calls
across a greater range of addresses. See <a href="Xtensa-Call-Relaxation.html#Xtensa-Call-Relaxation">Function Call Relaxation</a>. This option should be used when call
targets can potentially be out of range. It may degrade both code size
and performance, but the linker can generally optimize away the
unnecessary overhead when a call ends up within range. The default is
<span class="samp">--no-longcalls</span>.
<br><dt><code>--transform | --no-transform</code><dd><a name="index-_002d_002dtransform-1845"></a><a name="index-_002d_002dno_002dtransform-1846"></a>Enable or disable all assembler transformations of Xtensa instructions,
including both relaxation and optimization. The default is
<span class="samp">--transform</span>; <span class="samp">--no-transform</span> should only be used in the
rare cases when the instructions must be exactly as specified in the
assembly source. Using <span class="samp">--no-transform</span> causes out of range
instruction operands to be errors.
<br><dt><code>--rename-section </code><var>oldname</var><code>=</code><var>newname</var><dd><a name="index-_002d_002drename_002dsection-1847"></a>Rename the <var>oldname</var> section to <var>newname</var>. This option can be used
multiple times to rename multiple sections.
</dl>
</body></html>