Skip to main content

IAR Embedded Workbench for RL78 5.20

__far_func

In this section:
Syntax

See Syntax for type attributes used on functions.

Description

The __far_func memory attribute overrides the default storage of functions given by the selected code model and places individual functions in far_func memory. You can also use the __far_func attribute to create a pointer explicitly pointing to an object located in the far_func memory.

Storage
  • Address range: 0–0xFFFFF (1 Mbyte)

  • Maximum size: 65535 bytes. A function cannot cross a 64-Kbyte boundary.

  • Pointer size: 3 bytes

Example
__far_func void myfunction(void);
See also

Code models and memory attributes for function storage.