76 lines
3.5 KiB
HTML
76 lines
3.5 KiB
HTML
|
<html lang="en">
|
||
|
<head>
|
||
|
<title>RISC-V-Options - Using as</title>
|
||
|
<meta http-equiv="Content-Type" content="text/html">
|
||
|
<meta name="description" content="Using as">
|
||
|
<meta name="generator" content="makeinfo 4.13">
|
||
|
<link title="Top" rel="start" href="index.html#Top">
|
||
|
<link rel="up" href="RISC_002dV_002dDependent.html#RISC_002dV_002dDependent" title="RISC-V-Dependent">
|
||
|
<link rel="next" href="RISC_002dV_002dDirectives.html#RISC_002dV_002dDirectives" title="RISC-V-Directives">
|
||
|
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
|
||
|
<!--
|
||
|
This file documents the GNU Assembler "as".
|
||
|
|
||
|
Copyright (C) 1991-2019 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 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''.
|
||
|
|
||
|
-->
|
||
|
<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="RISC-V-Options"></a>
|
||
|
<a name="RISC_002dV_002dOptions"></a>
|
||
|
<p>
|
||
|
Next: <a rel="next" accesskey="n" href="RISC_002dV_002dDirectives.html#RISC_002dV_002dDirectives">RISC-V-Directives</a>,
|
||
|
Up: <a rel="up" accesskey="u" href="RISC_002dV_002dDependent.html#RISC_002dV_002dDependent">RISC-V-Dependent</a>
|
||
|
<hr>
|
||
|
</div>
|
||
|
|
||
|
<h4 class="subsection">9.38.1 RISC-V Options</h4>
|
||
|
|
||
|
<p>The following table lists all available RISC-V specific options.
|
||
|
|
||
|
<!-- man begin OPTIONS -->
|
||
|
|
||
|
<a name="index-g_t_0040samp_007b_002dfpic_007d-option_002c-RISC_002dV-1982"></a>
|
||
|
<dl><dt><code>-fpic</code><dt><code>-fPIC</code><dd>Generate position-independent code
|
||
|
|
||
|
<p><a name="index-g_t_0040samp_007b_002dfno_002dpic_007d-option_002c-RISC_002dV-1983"></a><br><dt><code>-fno-pic</code><dd>Don't generate position-independent code (default)
|
||
|
|
||
|
<p><a name="index-g_t_0040samp_007b_002dmarch_003dISA_007d-option_002c-RISC_002dV-1984"></a><br><dt><code>-march=ISA</code><dd>Select the base isa, as specified by ISA. For example -march=rv32ima.
|
||
|
|
||
|
<p><a name="index-g_t_0040samp_007b_002dmabi_003dABI_007d-option_002c-RISC_002dV-1985"></a><br><dt><code>-mabi=ABI</code><dd>Selects the ABI, which is either "ilp32" or "lp64", optionally followed
|
||
|
by "f", "d", or "q" to indicate single-precision, double-precision, or
|
||
|
quad-precision floating-point calling convention, or none to indicate
|
||
|
the soft-float calling convention. Also, "ilp32" can optionally be followed
|
||
|
by "e" to indicate the RVE ABI, which is always soft-float.
|
||
|
|
||
|
<p><a name="index-g_t_0040samp_007b_002dmrelax_007d-option_002c-RISC_002dV-1986"></a><br><dt><code>-mrelax</code><dd>Take advantage of linker relaxations to reduce the number of instructions
|
||
|
required to materialize symbol addresses. (default)
|
||
|
|
||
|
<p><a name="index-g_t_0040samp_007b_002dmno_002drelax_007d-option_002c-RISC_002dV-1987"></a><br><dt><code>-mno-relax</code><dd>Don't do linker relaxations.
|
||
|
|
||
|
</dl>
|
||
|
<!-- man end -->
|
||
|
|
||
|
</body></html>
|
||
|
|