- IAR Embedded Workbench for RISC-V 3.40
- IAR C/C++ Development
- Compiler options
- Descriptions of compiler options
Descriptions of compiler options
The following pages give detailed reference information about each compiler option.
Warning
If you use the options page Extra Options to specify specific command line options, the IDE does not perform an instant check for consistency problems like conflicting options, duplication of options, or use of irrelevant options.
‑‑code_model
Syntax
‑‑code_model={medlow|medany}Parameters
| Uses the Medlow (medium-low) code model. |
| Uses the Medany (medium-any) code model. |
Description
Use this option to select the code model. If you do not select a code model, the compiler uses the default code model. Note that all modules of your application must be code model compatible—if you mix Medlow and Medany modules in your project, you must link all modules to the Medlow area.
Note
This option is only available for RV64 devices.
See also
Caution
Project>Options>General Options>Target>Code model