The XREF option provides a cross-reference table of names used in the program together with the numbers of the statements in which they are declared or referenced in the compiler listing.
.-NOXREF--------------------. >>-+-XREF--+-----------------+-+------------------------------->< | .-FULL--. | '-(--+-SHORT-+--)-'
ABBREVIATIONS: X, NX
In addition to the cross-reference list, the compiler produces a listing of unreferenced identifiers. In this list, variables do not appear if they are named constants or static nonassignable variables. If any field in a union or structure is referenced, the name of the union or structure does not appear. Level 1 names for unions or structures appear only if none of the members are referenced.
For an example and description of the content of the cross-reference table, see Using the compiler listing. If both XREF and ATTRIBUTES are specified, the two listings are combined.