This intrinsic enables you to determine the current value of the program counter at the point in your program where the intrinsic is used.
unsigned int __current_pc(void)
The __current_pc intrinsic returns the current value of the program counter at the point in the program where the intrinsic is used.