title: How to print exact value of the program counter in C
body: <p>I want to write a C program which would print the contents of the program counter <code>PC</code>. Can this be done from user space, or assembly, or some specific kernel routines are used?</p>