Skip to main content

IAR Embedded Workbench for RL78 5.20.x

--near_const_location

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

RAM

Constants are located in RAM, in the range 0xF0000–0xFFFFF

ROM0

Constants are located in ROM, in the range 0x00000–0x0FFFF, and are mirrored by hardware to RAM, in the range 0xF0000–0xFFFFF

ROM1

Constants are located in ROM, in the range 0x10000–0x1FFFF, and are mirrored by hardware to RAM, in the range 0xF0000–0xFFFFF

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