Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.

EIP is physical or virtual address?

kai_w_
Beginner
637 Views

I have a question about EIP register. I know it's address of newt instruction, but it means physical address or virtual address? Also, if I have a parallel program, are EIP values of one instruction are same among different processes? Thanks.

0 Kudos
1 Reply
Richard_Nutman
New Contributor I
637 Views

If you're talking about an OS with virtual memory, Linux, Windows etc.. then the EIP shows the virtual address.

If I understand you right, the virtual address of a particular instruction is the same across different threads within the same process.  Each core in the CPU has their own EIP registers, so cores can execute different code at the same time.

Hope this answers your questions.

 

0 Kudos
Reply