How do machine code instructions get transferred to the CPU?
Posted
by
user3711789
on Stack Overflow
See other posts from Stack Overflow
or by user3711789
Published on 2014-06-05T15:16:44Z
Indexed on
2014/06/05
15:24 UTC
Read the original article
Hit count: 174
I'm currently investigating what the runtime of different programming languages looks like behind the scenes. For a compiled language like C, people usually give the explanation of "Code is compiled to assembly which is assembled and linked into a binary executable. The executable is then loaded into memory and the CPU interprets it." My question is how does the CPU know where to look for the next instruction to execute? Is it a memory address stored in one of the registers?
© Stack Overflow or respective owner