Skip to main content

IAR Embedded Workbench for RISC-V 3.40

The Medany (medium-any) code model

In this section:

The generated code must lie within a single 2 Gbytes address range. This code model also generates a 32-bit signed offset to refer to global symbols. Linked code can reside at any address, and global symbol addresses are generated in a ±2 Gbytes range from the code area. This is the default code model.

For 32-bit architectures, the full address range is available for your application. By using the code model Medany, applications on 64-bit architectures can link code at any base address, but linked global symbols must be within 2 Gbytes from the code area.