- IAR Embedded Workbench for RISC-V 3.40
- 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 |
|---|---|
| Allows misaligned data accesses |
| Specifies the C89 dialect |
| Treats |
| Treats |
| Specifies the code model |
| Specifies the RISC-V ISA to generate code for |
| Specifies Standard C++ |
| Defines preprocessor symbols |
| 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 |
| Lists in a structured format all output files |
| Enables IAR language extensions |
| Enables the Standard C keyword |
| Specifies the allowed number of errors before compilation stops |
| Extends the command line |
| Extends the command line, optionally with a dependency |
| Places each function of the source file in a separate section in the resulting object file |
| Enables guards for function static variable initialization |
| Lists all referred source files and header files |
| Specifies include file path |
| Creates a list file |
| Enables IAR or GNU language extensions |
| Makes the compiler and linker use the Libc++ library |
| Obtains positions inside macros in diagnostic messages |
| Specifies the limit for |
| Specifies the limit for |
| Enables multi-file compilation |
| Disables an optimization that can change the link register used for static functions |
| 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 cross-jump 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 loop label optimization |
| 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 |
| Disables the instruction scheduler |
| 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 |
| 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 |
| Changes the alignment of the default interrupt |
| Uses the smallest possible type for enum constants |
| Sets silent operation |
| Specifies the encoding for source files |
| Enables stack protection |
| Checks for strict compliance with Standard C/C++ |
| Specifies the path for system include files |
| Specifies the encoding for text output files |
| 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 |