These options are supported for Xtensa targets:
-mconst16
-mno-const16
CONST16
instructions for loading constant values. The CONST16
instruction is currently not a standard option from Tensilica. When enabled, CONST16
instructions are always used in place of the standard L32R
instructions. The use of CONST16
is enabled by default only if the L32R
instruction is not available. -mfused-madd
-mno-fused-madd
-mserialize-volatile
-mno-serialize-volatile
MEMW
instructions before volatile
memory references to guarantee sequential consistency. The default is -mserialize-volatile
. Use -mno-serialize-volatile
to omit the MEMW
instructions. -mforce-no-pic
-mtext-section-literals
-mno-text-section-literals
-mno-text-section-literals
, which places literals in a separate section in the output file. This allows the literal pool to be placed in a data RAM/ROM, and it also allows the linker to combine literal pools from separate object files to remove redundant literals and improve code size. With -mtext-section-literals
, 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. -mtarget-align
-mno-target-align
-mtarget-align
. These options do not affect the treatment of auto-aligned instructions like LOOP
, which the assembler always aligns, either by widening density instructions or by inserting NOP instructions. -mlongcalls
-mno-longcalls
CALL
instruction into an L32R
followed by a CALLX
instruction. The default is -mno-longcalls
. This option should be used in programs where the call target can potentially be out of range. This option is implemented in the assembler, not the compiler, so the assembly code generated by GCC still shows direct call instructions—look at the disassembled object code to see the actual instructions. Note that the assembler uses an indirect call for every cross-file call, not just those that really are out of range.
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-4.9.3/gcc/Xtensa-Options.html