Skip to main content

IAR Embedded Workbench for RL78 5.20

Function pointers

In this section:

The size of function pointers is always 16 or 24 bits. These function pointers are available:

Keyword

Pointer size

Default in code model

Description

__near_func

2 bytes

Near

Can address the first 64 Kbytes of memory.

__far_func

3 bytes*

Far

Can address the entire 1 Mbyte memory space.

Table 78. Function pointers  


* Because of alignment restrictions, 3-byte pointers take up 4 bytes in memory.