How instructions are differentiated from data?

后端 未结 6 1328
长情又很酷
长情又很酷 2020-12-01 12:42

While reading ARM core document, I got this doubt. How does the CPU differentiate the read data from data bus, whether to execute it as an instruction or as a data that it c

6条回答
  •  醉梦人生
    2020-12-01 13:26

    So, I think the CPU 'knows' whether memory is data or code. No doubt the modern pipeling CPUs we have now also have instructions to read this memory differently to assist the CPU is processing it as fast as possible (eg code may not be cached, data will always be accessed randomly rather than in a stream)

提交回复
热议问题