Skip to main content

IAR Embedded Workbench for RISC-V 3.40

Descriptions of compiler options

In this section:

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

medlow

Uses the Medlow (medium-low) code model.

medany (default)

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

Code models (RV64 only) .

Caution

Project>Options>General Options>Target>Code model