Data Pointers

There are several pointer classifications used with the MPLAB XC8 C Compiler, such as those indicated below. Those classification marked with (local) are the only classifications considered when local OCG optimizations have been selected (see Pointer Classifications with Local Optimization).

For Baseline and Mid-range devices:

For PIC18 devices:

Each data pointer will be allocated one of the available classifications after preliminary scans of the source code. There is no mechanism by which the programmer can specify the style of pointer required (other than by the assignments to the pointer). The C code must convey the required information to the compiler.

Information about the pointers and their targets are shown in the pointer reference graph (described in Pointer Reference Graph). This graph is printed in the assembly list file.