3.5.14 How Do I Find Out Where Variables and Functions Have Been Positioned?
You can determine where variables and functions have been positioned from either the assembly list file (generated by the assembler) or the map file (generated by the linker). Only global symbols are shown in the map file; all symbols (including locals) are listed in the assembly list file.
There is a mapping between C identifiers and the symbols used in assembly code, which are the symbols shown in both of these files. The symbol associated with a variable is assigned the address of the lowest byte of the variable; for functions it is the address of the first instruction generated for that function.
For more on assembly list files and linker map files, see the MPLAB® XC32 Assembler, Linker and Utilities User’s Guide (DS50002186).