gcc: CRIS Options
1
1 3.18.8 CRIS Options
1 -------------------
1
1 These options are defined specifically for the CRIS ports.
1
1 '-march=ARCHITECTURE-TYPE'
1 '-mcpu=ARCHITECTURE-TYPE'
1 Generate code for the specified architecture. The choices for
1 ARCHITECTURE-TYPE are 'v3', 'v8' and 'v10' for respectively
1 ETRAX 4, ETRAX 100, and ETRAX 100 LX. Default is 'v0' except for
1 cris-axis-linux-gnu, where the default is 'v10'.
1
1 '-mtune=ARCHITECTURE-TYPE'
1 Tune to ARCHITECTURE-TYPE everything applicable about the generated
1 code, except for the ABI and the set of available instructions.
1 The choices for ARCHITECTURE-TYPE are the same as for
1 '-march=ARCHITECTURE-TYPE'.
1
1 '-mmax-stack-frame=N'
1 Warn when the stack frame of a function exceeds N bytes.
1
1 '-metrax4'
1 '-metrax100'
1 The options '-metrax4' and '-metrax100' are synonyms for
1 '-march=v3' and '-march=v8' respectively.
1
1 '-mmul-bug-workaround'
1 '-mno-mul-bug-workaround'
1 Work around a bug in the 'muls' and 'mulu' instructions for CPU
1 models where it applies. This option is active by default.
1
1 '-mpdebug'
1 Enable CRIS-specific verbose debug-related information in the
1 assembly code. This option also has the effect of turning off the
1 '#NO_APP' formatted-code indicator to the assembler at the
1 beginning of the assembly file.
1
1 '-mcc-init'
1 Do not use condition-code results from previous instruction; always
1 emit compare and test instructions before use of condition codes.
1
1 '-mno-side-effects'
1 Do not emit instructions with side effects in addressing modes
1 other than post-increment.
1
1 '-mstack-align'
1 '-mno-stack-align'
1 '-mdata-align'
1 '-mno-data-align'
1 '-mconst-align'
1 '-mno-const-align'
1 These options ('no-' options) arrange (eliminate arrangements) for
1 the stack frame, individual data and constants to be aligned for
1 the maximum single data access size for the chosen CPU model. The
1 default is to arrange for 32-bit alignment. ABI details such as
1 structure layout are not affected by these options.
1
1 '-m32-bit'
1 '-m16-bit'
1 '-m8-bit'
1 Similar to the stack- data- and const-align options above, these
1 options arrange for stack frame, writable data and constants to all
1 be 32-bit, 16-bit or 8-bit aligned. The default is 32-bit
1 alignment.
1
1 '-mno-prologue-epilogue'
1 '-mprologue-epilogue'
1 With '-mno-prologue-epilogue', the normal function prologue and
1 epilogue which set up the stack frame are omitted and no return
1 instructions or return sequences are generated in the code. Use
1 this option only together with visual inspection of the compiled
1 code: no warnings or errors are generated when call-saved registers
1 must be saved, or storage for local variables needs to be
1 allocated.
1
1 '-mno-gotplt'
1 '-mgotplt'
1 With '-fpic' and '-fPIC', don't generate (do generate) instruction
1 sequences that load addresses for functions from the PLT part of
1 the GOT rather than (traditional on other architectures) calls to
1 the PLT. The default is '-mgotplt'.
1
1 '-melf'
1 Legacy no-op option only recognized with the cris-axis-elf and
1 cris-axis-linux-gnu targets.
1
1 '-mlinux'
1 Legacy no-op option only recognized with the cris-axis-linux-gnu
1 target.
1
1 '-sim'
1 This option, recognized for the cris-axis-elf, arranges to link
1 with input-output functions from a simulator library. Code,
1 initialized data and zero-initialized data are allocated
1 consecutively.
1
1 '-sim2'
1 Like '-sim', but pass linker options to locate initialized data at
1 0x40000000 and zero-initialized data at 0x80000000.
1