Everything
8.6 PIC/PID Facility

The method for creating a program that can allocate functions or data to desired positions in memory (position-independent program) is described in this section.

In the CC-RH, the objects to be allocated and the facilities are classified into the following three types.

-

A facility that can allocate code (function) to a given address and execute it is called the PIC (Position Independent Code) facility.

-

A facility that can allocate the constant data (const variable) to a given address and reference it is called the PIROD (Position Independent Read Only Data) facility.

-

A facility that can allocate data (variable) to a given address and reference it is called the PID (Position Independent Data) facility.