| @c Copyright (C) 2016-2017 Free Software Foundation, Inc. |
| @c This is part of the GAS anual. |
| @c For copying conditions, see the file as.texinfo |
| @c man end |
| |
| @ifset GENERIC |
| @page |
| @node RISC-V-Dependent |
| @chapter RISC-V Dependent Features |
| @end ifset |
| @ifclear GENERIC |
| @node Machine Dependencies |
| @chapter RISC-V Dependent Features |
| @end ifclear |
| |
| @cindex RISC-V support |
| @menu |
| * RISC-V-Opts:: RISC-V Options |
| @end menu |
| |
| @node RISC-V-Opts |
| @section Options |
| |
| The following table lists all available RISC-V specific options |
| |
| @c man begin OPTIONS |
| @table @gcctabopt |
| |
| @cindex @samp{-fpic} option, RISC-V |
| @item -fpic |
| Generate position-independent code |
| |
| @cindex @samp{-fno-pic} option, RISC-V |
| @item -fno-pic |
| Don't generate position-independent code (default) |
| |
| @cindex @samp{-march=ISA} option, RISC-V |
| @item -march=ISA |
| Select the base isa, as specified by ISA. For example -march=rv32ima. |
| |
| @cindex @samp{-mabi=ABI} option, RISC-V |
| @item -mabi=ABI |
| 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. |
| |
| @end table |
| @c man end |