GCC supports these options when compiling for C-SKY V2 processors.
-march=archSpecify the C-SKY target architecture. Valid values for arch are: ‘ck801’, ‘ck802’, ‘ck803’, ‘ck807’, and ‘ck810’. The default is ‘ck810’.
-mcpu=cpuSpecify the C-SKY target processor. Valid values for cpu are: ‘ck801’, ‘ck801t’, ‘ck802’, ‘ck802t’, ‘ck802j’, ‘ck803’, ‘ck803h’, ‘ck803t’, ‘ck803ht’, ‘ck803f’, ‘ck803fh’, ‘ck803e’, ‘ck803eh’, ‘ck803et’, ‘ck803eht’, ‘ck803ef’, ‘ck803efh’, ‘ck803ft’, ‘ck803eft’, ‘ck803efht’, ‘ck803r1’, ‘ck803hr1’, ‘ck803tr1’, ‘ck803htr1’, ‘ck803fr1’, ‘ck803fhr1’, ‘ck803er1’, ‘ck803ehr1’, ‘ck803etr1’, ‘ck803ehtr1’, ‘ck803efr1’, ‘ck803efhr1’, ‘ck803ftr1’, ‘ck803eftr1’, ‘ck803efhtr1’, ‘ck803s’, ‘ck803st’, ‘ck803se’, ‘ck803sf’, ‘ck803sef’, ‘ck803seft’, ‘ck807e’, ‘ck807ef’, ‘ck807’, ‘ck807f’, ‘ck810e’, ‘ck810et’, ‘ck810ef’, ‘ck810eft’, ‘ck810’, ‘ck810v’, ‘ck810f’, ‘ck810t’, ‘ck810fv’, ‘ck810tv’, ‘ck810ft’, and ‘ck810ftv’.
-mbig-endian-EB-mlittle-endian-ELSelect big- or little-endian code. The default is little-endian.
-mhard-float-msoft-floatSelect hardware or software floating-point implementations. The default is soft float.
-mdouble-float-mno-double-floatWhen -mhard-float is in effect, enable generation of double-precision float instructions. This is the default except when compiling for CK803.
-mfdivdu-mno-fdivduWhen -mhard-float is in effect, enable generation of frecipd, fsqrtd, and fdivd instructions. This is the default except when compiling for CK803.
-mfpu=fpuSelect the floating-point processor. This option can only be used with -mhard-float. Values for fpu are ‘fpv2_sf’ (equivalent to ‘-mno-double-float -mno-fdivdu’), ‘fpv2’ (‘-mdouble-float -mno-divdu’), and ‘fpv2_divd’ (‘-mdouble-float -mdivdu’).
-melrw-mno-elrwEnable the extended lrw instruction. This option defaults to on for CK801 and off otherwise.
-mistack-mno-istackEnable interrupt stack instructions; the default is off.
The -mistack option is required to handle the interrupt and isr function attributes (see C-SKY Function Attributes).
-mmpEnable multiprocessor instructions; the default is off.
-mcpEnable coprocessor instructions; the default is off.
-mcacheEnable coprocessor instructions; the default is off.
-msecurityEnable C-SKY security instructions; the default is off.
-mtrustEnable C-SKY trust instructions; the default is off.
-mdsp-medsp-mvdspEnable C-SKY DSP, Enhanced DSP, or Vector DSP instructions, respectively. All of these options default to off.
-mdiv-mno-divGenerate divide instructions. Default is off.
-msmart-mno-smartGenerate code for Smart Mode, using only registers numbered 0-7 to allow use of 16-bit instructions. This option is ignored for CK801 where this is the required behavior, and it defaults to on for CK802. For other targets, the default is off.
-mhigh-registers-mno-high-registersGenerate code using the high registers numbered 16-31. This option is not supported on CK801, CK802, or CK803, and is enabled by default for other processors.
-manchor-mno-anchorGenerate code using global anchor symbol addresses.
-mpushpop-mno-pushpopGenerate code using push and pop instructions. This option defaults to on.
-mmultiple-stld-mstm-mno-multiple-stld-mno-stmGenerate code using stm and ldm instructions. This option isn’t supported on CK801 but is enabled by default on other processors.
-mconstpool-mno-constpoolCreate constant pools in the compiler instead of deferring it to the assembler. This option is the default and required for correct code generation on CK801 and CK802, and is optional on other processors.
-mstack-size-mno-stack-sizeEmit .stack_size directives for each function in the assembly output. This option defaults to off.
-mccrt-mno-ccrtGenerate code for the C-SKY compiler runtime instead of libgcc. This option defaults to off.
-mbranch-cost=nSet the branch costs to roughly n instructions. The default is 1.
-msched-prolog-mno-sched-prologPermit scheduling of function prologue and epilogue sequences. Using this option can result in code that is not compliant with the C-SKY V2 ABI prologue requirements and that cannot be debugged or backtraced. It is disabled by default.
Next: Darwin Options, Previous: CR16 Options, Up: Submodel Options [Contents][Index]
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/C_002dSKY-Options.html