The XREF directive generates declared functions, enabling them to be used with the Assembler. Do not generate the function into the output file, but place the function in an area of your code preceded by #pragma CREATE_ASM_LISTING OFF. The Assembler does not allow the redefinition of labels declared with XREF (see the following listing).
#pragma CREATE_ASM_LISTING ON void main(void); void f_C(int i, long l); #pragma CREATE_ASM_LISTING OFF void f_asm(void);
The source code above disassembles as in the following listing.
XREF main XREF f_C