Skip to main content

IAR Embedded Workbench for RH850 3.20.x

__saddr

In this section:
Syntax

See Syntax for type attributes used on data objects.

Description

The __saddr memory attribute overrides the default storage of variables given by the selected data model and places individual variables and constants in short addressing (saddr) memory.

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

Storage
  • Address range: From processor register R30 (EP) and 256 bytes onward.

  • Maximum object size: 256 bytes (128 bytes for objects that require byte access and 32 bytes for objects that require unsigned byte/half word read access).

Example
__saddr int x;
See also

Memory types.