How does binary translate to hardware?

后端 未结 14 1018
长发绾君心
长发绾君心 2020-12-23 10:14

I understand how the code is compiled to assembly, and that assembly is a 1:1 replacement with binary codes. Can somebody help me understand how binary is conne

14条回答
  •  温柔的废话
    2020-12-23 11:13

    Essentially, and very broadly speaking, the instructions end up in memory, and the program counter (PC) register holds the address of the first instruction.

    The processor supports instructions that load can move data to/from memory to registers. The processor moves data into the instruction register, and that instruction gets executed at the next clock tick.

    I'm not qualified to explain the electrical engineering behind that, but you could probably look it up.

    Of course, this all fairly simplified, as there is a huge amount of parallelism going on in modern processors, and I don't even pretend to grok that in any meaningful way.

提交回复
热议问题