Next: , Up: RISC-V-Dependent   [Contents][Index]


9.37.1 RISC-V Options

The following table lists all available RISC-V specific options.

-fpic
-fPIC

Generate position-independent code

-fno-pic

Don’t generate position-independent code (default)

-march=ISA

Select the base isa, as specified by ISA. For example -march=rv32ima.

-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. Also, "ilp32" can optionally be followed by "e" to indicate the RVE ABI, which is always soft-float.

-mrelax

Take advantage of linker relaxations to reduce the number of instructions required to materialize symbol addresses. (default)

-mno-relax

Don’t do linker relaxations.