This section explains options for the compile phase.
Caution about options are shown below.
When numerical values are specified as parameters, decimal or hexadecimal numbers which starts with "0x" ("0X") can be specified. |
When a file name is specified as a parameter, it can include the path (absolute path or relative path). |
When a parameter includes a space (such as a path name), enclose the parameter in a pair of double quotation marks ("). |
The types and explanations for options are shown below.
This option specifies the folder to save an object file generated during compilation. |
||
This option specifies the folder to save an assembly source file generated during compilation. |
||
This option specifies the folder to save the preprocessed file. |
||
This option enhances information for source debugging at optimization. |
||
This option specifies that an object file common to the various devices is generated. |
||
This option specifies that an object for the specified core is generated. |
||
This option executes only preprocess processing for the input file. |
||
This option defines preprocessor macros and assembler symbols. |
||
This option deletes the definition of the preprocessor macro or assembler symbol by the -D option. |
||
This option specifies the file that is included at the top of the compilation unit. |
||
This option controls outputting the result of preprocessing. |
||
This option processes the C source program in strict accordance with the language standard. |
||
This option specifies which integer type the enumeration type handles. |
||
This option checks source code against the MISRA-C: 2004 rules. |
||
This option checks source code against the MISRA-C: 2012 rules. |
||
This option specifies files that will not be checked against the MISRA-C: 2004 rules or MISRA-C: 2012 rules. |
||
This option enables the source-code checking of the MISRA-C: 2004 rules or MISRA-C: 2012 rules, which are partially suppressed by the extended language specifications. |
||
-misra_intermodule [Professional Edition only] [V2.01.00 or later] |
This option checks source code in multiple files against the MISRA-C:2012 rules. |
|
This option selects the use of the half-precision floating-point type. |
||
This option specifies the optimization level or the details of each optimization items. |
||
This option performs inline expansion of standard library functions "strcpy", "strcmp", "memcpy", and "memset" calls. |
||
This option performs optimization with consideration for the type of the data indicated by the pointer. |
||
This option merges two or more C source files and compiles them. |
||
This option performs optimization assuming that the files to be compiled comprise the entire program. |
||
This option performs inline expansion for calling the standard library functions. |
||
This option generates information for link-time optimization. |
||
This option outputs a C source program as a comment to the assembly source file. |
||
This option specifies a mode in which the code of a switch statement is to be output. |
||
This option controls generating floating-point calculation instructions. |
||
This option controls generating function-call branch instructions. |
||
This option generates the div and divu instructions for division. |
||
This option generates a floating-point calculation code with efficiency given precedence over strictness. |
||
This option replaces floating-point calculations with equivalent approximate calculations. |
||
This option detects invalid operation exceptions in floating-point comparison. |
||
This option specifies the generation of a multi-core program. |
||
This option specifies the data size of double and long double type. |
||
This option specifies the mode for rounding floating-point constants. |
||
This option specifies the alignment value for branch destination addresses. |
||
-Xstack_protector/-Xstack_protector_all [Professional Edition only] |
This option generates a code for detection of stack smashing. |
|
This option specifies the operating mode of the resbank instruction. |
||
This option controls detection of writing to control registers or insertion of synchronization processing between registers. |
||
-control_flow_integrity [Professional Edition only] [V1.07.00 or later] |
This option generates code for the detection of illegal indirect function calls. |
|
This option suppresses outputting warning messages of the specified number. |
||
This option changes specified warning messages into error messages. |
||