Software Tuning, Performance Optimization & Platform Monitoring
Discussion around monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform monitoring
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

EIP is physical or virtual address?

kai_w_
Beginner
249 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
249 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.

 

Reply