Community
cancel
Showing results for 
Search instead for 
Did you mean: 
kai_w_
Beginner
136 Views

EIP is physical or virtual address?

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
136 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