Skip to main content

IAR Embedded Workbench for RL78 5.20

__near

In this section:
Syntax

See Syntax for type attributes used on data objects.

Description

The __near memory attribute overrides the default storage of variables given by the selected data model and places individual variables and constants in near memory.

You can also use the __near attribute to create a pointer explicitly pointing to an object located in the near memory.

Storage
  • Address range: 0xF0000–0xFFFFF

  • Maximum object size: 65535 bytes

  • Pointer size: 2 bytes

Example
__near int x;
See also

Memory types.