The MPLAB® XC8 compiler's pointer reference graph is generated in the list file that is generated for the project after a successful build. This graph shows every pointer in the program, along with each target the pointer references.
For a code as:
This is the pointer reference graph generated in the list file:
Pointer List with Targets:
main@stobj PTR struct st size(1) Largest target is 3
-> main@obj(COMRAM[3]),
val PTR FTN(int ,int ,)int [4] size(3) Largest target is 2
-> foo(),
main@stobj PTR struct st size(1) Largest target is 3
-> main@obj(COMRAM[3]),
This indicates that stobj is local to function main. stobj is a pointer to a struct st, and it is one byte wide. This target variable resides in the COMRAM class and is three bytes wide.
The top line shows the pointer’s name and type. The size of the pointer is also indicated. Remember that this size is determined by how the pointer is used, not from its definition. The largest target is also shown. The name of each target is printed along with the memory class in which it is located and its size.