Skip to main content

IAR Embedded Workbench for RL78 5.20

--near_const_location

In this section:
Syntax
--near_const_location [RAM|ROM0|ROM1]
Parameters

RAM

Constants are located in RAM, in the range 0xF00000xFFFFF

ROM0

Constants are located in ROM, in the range 0x000000x0FFFF, and are mirrored by hardware to RAM, in the range 0xF00000xFFFFF

ROM1

Constants are located in ROM, in the range 0x100000x1FFFF, and are mirrored by hardware to RAM, in the range 0xF00000xFFFFF

Description

Use this option to specify the location for __near declared constants and strings: in RAM or mirrored from ROM.

For a detailed description of how this works and of the available memory ranges, see the chip manufacturer’s documentation.

Caution

Project>Options>General Options>Target>Near constant location