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.
An option with the description of [Professional Edition only] can be used only in the Professional Edition.
This option specifies the folder to save an object file |
||
This option specifies the folder to save an assembly source file generated during compilation. |
||
This option specifies the folder to save the preprocessed C source file. |
||
This option enhances information for source debugging at optimization. |
||
This option deletes the definition of the preprocessor macro by the -D option. |
||
This option specifies the C header file that is included at the top of the compilation unit. |
||
This option controls outputting the result of preprocessing. |
||
This option specifies the type of the memory model when compiling. |
||
This option sets the default near/far attribute of ROM data to far. |
||
This option specifies the optimization level or the details of each optimization items. |
||
This option generates the information for inter-module |
||
This option suppresses outputting warning messages of the specified number. |
||
This option outputs all compiler error messages together to a file. |
||
This option outputs a C source program as a comment to the assembly source file. |
||
This option changes the interpretation of the double and long double types. |
||
This option specifies that a char type without a signed or unsigned specifier is handled as a signed type. |
||
This option specifies that a bit field of a type without a signed or unsigned specifier is handled as a signed type. |
||
This option specifies the format in which the code of switch statements is to be output. |
||
External variables and the variables specified with "#pragma address" are handled as if they were volatile-declared. |
||
This option sets 1 as the number of alignment for a structure member. |
||
-stack_protector/-stack_protector_all [Professional Edition only] [V1.02 or later] |
This option generates a code for detection of stack smashing. |
|
The C source program is processed in strict compliance with the ANSI standard. |
||
An error is generated upon reference of an undeclared |
||
This option sets the maximum size of a variable to 0xffff bytes. |
||
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 |
||
This option specifies the use of a subcommand file to specify the assemble options to be passed to the assembler. |
||
This option specifies the use of a subcommand file to specify the link options to be passed to the optimizing linker. |
||
This option specifies the device file that the assembler and optimizing linker use. |
||
This option supports transition of programs written for other compilers. |