Movatterモバイル変換


[0]ホーム

URL:


Next:, Previous:, Up:Machine-Dependent Options   [Contents][Index]


3.21.9 CRIS Options

These options are defined specifically for the CRIS ports.

-march=architecture-type
-mcpu=architecture-type

Generate code for the specified architecture. The choices forarchitecture-type are ‘v3’, ‘v8’ and ‘v10’ forrespectively ETRAX 4, ETRAX 100, and ETRAX 100 LX.Default is ‘v0’.

-mtune=architecture-type

Tune toarchitecture-type everything applicable about the generatedcode, except for the ABI and the set of available instructions. Thechoices forarchitecture-type are the same as for-march=architecture-type.

-mmax-stackframe=n

Warn when the stack frame of a function exceedsn bytes.

-metrax4
-metrax100

The options-metrax4 and-metrax100 are synonyms for-march=v3 and-march=v8 respectively.

-mmul-bug-workaround
-mno-mul-bug-workaround

Work around a bug in themuls andmulu instructions for CPUmodels where it applies. This option is disabled by default.

-mpdebug

Enable CRIS-specific verbose debug-related information in the assemblycode. This option also has the effect of turning off the ‘#NO_APP’formatted-code indicator to the assembler at the beginning of theassembly file.

-mcc-init

Do not use condition-code results from previous instruction; always emitcompare and test instructions before use of condition codes.

-mno-side-effects

Do not emit instructions with side effects in addressing modes other thanpost-increment.

-mstack-align
-mno-stack-align
-mdata-align
-mno-data-align
-mconst-align
-mno-const-align

These options (‘no-’ options) arrange (eliminate arrangements) for thestack frame, individual data and constants to be aligned for the maximumsingle data access size for the chosen CPU model. The default is toarrange for 32-bit alignment. ABI details such as structure layout arenot affected by these options.

-m32-bit
-m16-bit
-m8-bit

Similar to the stack- data- and const-align options above, these optionsarrange for stack frame, writable data and constants to all be 32-bit,16-bit or 8-bit aligned. The default is 32-bit alignment.

-mno-prologue-epilogue
-mprologue-epilogue

With-mno-prologue-epilogue, the normal function prologue andepilogue which set up the stack frame are omitted and no returninstructions or return sequences are generated in the code. Use thisoption only together with visual inspection of the compiled code: nowarnings or errors are generated when call-saved registers must be saved,or storage for local variables needs to be allocated.

-mbest-lib-options
-moverride-best-lib-options

-mbest-lib-options selects the most feature-enabling optionsallowed by other options. This option has no ‘no-’ form, but-moverride-best-lib-options disables it regardless of the relativeorder of the two options on the command line.

-mtrap-using-break8

Emit traps as ‘break 8’. This is the default for CRIS v3 and up. Ifdisabled, calls toabort are used instead.

-mtrap-unaligned-atomic

Emit checks causing ‘break 8’ instructions to execute whenapplying atomic builtins on misaligned memory.

-munaligned-atomic-may-use-library

Handle atomic builtins that may be applied to unaligned data by callinglibrary functions. This option overrides-mtrap-unaligned-atomic.

-sim

This option arrangesto link with input-output functions from a simulator library. Code,initialized data and zero-initialized data are allocated consecutively.

-sim2

Like-sim, but pass linker options to locate initialized data at0x40000000 and zero-initialized data at 0x80000000.


Next:C-SKY Options, Previous:C6X Options, Up:Machine-Dependent Options   [Contents][Index]


[8]ページ先頭

©2009-2026 Movatter.jp