- IAR Embedded Workbench for RX 5.20
- IAR C/C++ Development
- Compiler options
- Summary of compiler options
Summary of compiler options
This table summarizes the compiler command line options:
Command line option | Description |
|---|---|
| Specifies the alignment of function entry points |
| Specifies the C89 dialect |
| Specifies a constant value for the stack protection canary element |
| Treats |
| Treats |
| Specifies a CPU core |
| Specifies Standard C++ |
| Defines preprocessor symbols |
| Specifies the data model |
| Generates debug information |
| Lists file dependencies |
| Enables/disables warnings for deprecated features |
| Treats these as errors |
| Treats these as remarks |
| Suppresses these diagnostics |
| Treats these as warnings |
| Specifies the format for printed diagnostics |
| Lists all diagnostic messages |
| Discards unused public symbols |
| Uses the system include files for the DLIB library and determines which configuration of the library to use |
| For user-named sections, treats explicit initializations to zero as zero initializations |
| Forces the compiler to use 32-bit or 64-bit doubles |
| Lists in a structured format all output files |
| Enables IAR language extensions |
| Enables the Standard C keyword |
| Specifies the byte order of the generated code and data |
| Sets the minimum size on enumeration types |
| Specifies the allowed number of errors before compilation stops |
| Extends the command line |
| Extends the command line, optionally with a dependency |
| Specifies how the compiler handles floating-point operations |
| Places each function of the source file in a separate section in the resulting object file |
| Generates extra functions for use from non-instrumented code. See Compiler and linker reference for C-RUN |
| Enables guards for function static variable initialization |
| Lists all referred source files and header files |
| Specifies include file path |
| Disables checking of accesses via pointers from non-instrumented code. See Compiler and linker reference for C-RUN |
| Specifies the size of the data type |
| Enables the bitfield allocation strategy Joined types |
| Creates a list file |
| Enables IAR or GNU language extensions |
| Makes the compiler and linker use the Libc++ library |
| Locks registers |
| Obtains positions inside macros in diagnostic messages |
| Specifies the limit for |
| Specifies the limit for |
| Enables multi-file compilation |
| Omits the Byte Order Mark for UTF-8 output files |
| Disables output of call frame information |
| Disables static clustering optimizations |
| Disables code motion optimization |
| Disables cross-call optimization |
| Disables common subexpression elimination |
| Sets the default value for |
| This option has no effect and is included for portability reasons |
| Disables section fragment handling |
| Disables function inlining |
| Disables normalization of paths in the symbols |
| Removes the path from the return value of the symbols |
| This option has no effect and is included for portability reasons |
| Does not save the TUF v2 registers in interrupt functions |
| Disables the instruction scheduler |
| Disables variable shattering |
| Relaxes the normal restrictions for code size expansion when optimizing for speed |
| Disables destruction of C++ static variables at program exit |
| Disables the automatic search for system include files |
| Disables type-based alias analysis |
| Disables the use of typedef names in diagnostics |
| Specifies the default syntax rules for IAR type attributes |
| Disables loop unrolling |
| Disables all warnings |
| Disables wrapping of diagnostic messages |
| Generates a warning when the path used for opening a source header file is not in the same case as the path in the file system |
| Sets the optimization level |
| Sets the object filename. Alias for |
| Uses standard output only |
| Sets the object filename |
| Generates code that does not trigger some known hardware-related problems for a specific device group |
| Sets the maximum number of instantiations of a given C++ template |
| Lists the predefined symbols. |
| Includes an include file before reading the source file |
| Generates preprocessor output |
| Defines a global named assembler label |
| Generates debug information. Alias for |
| Relaxes the rules for optimizing floating-point expressions |
| Enables remarks |
| Verifies that functions are declared before they are defined |
| Enables the bitfield allocation strategy Reverse disjoint types |
| Generates code that usesposition-independent references to access code and read-only data |
| Enables runtime error checking. See Compiler and linker reference for C-RUN |
| Generates code that uses an offset from the static base register to address-writable data |
| Generates code that uses an offset from the static base register to address-writable data. Addresses max 64 Kbytes of memory |
| Saves and restores the DSP accumulator when the interrupt context switches |
| Changes a section name |
| Sets silent operation |
| Specifies the encoding for source files |
| Disables replacing calls to the library function |
| Enables stack protection |
| Checks for strict compliance with Standard C/C++ |
| Disables generation of the runtime attribute |
| Specifies the path for system include files |
| Specifies the encoding for text output files |
| Enables support for the TUF |
| Specifies the TUF version that needs to be used |
| Specifies the same syntax rules for IAR type attributes as for |
| Uses C++ inline semantics in C |
| Use paths as written in debug information |
| Uses |
| Uses the UTF-8 encoding for text input files |
| Sends compiler output to the console and then exits |
| Enables VLA support |
| Makes the compiler warn when C-style casts are used in C++ source code |
| Makes the compiler warn about constructors that do not initialize all members |
| Makes the compiler warn about fields without explicit initializers |
| Warnings affect exit code |
| Warnings are treated as errors |