Why can an executable run on both Intel and AMD processors?

前端 未结 2 1018
一向
一向 2020-12-31 05:11

How is it that an executable can work on both AMD and Intel systems. Aren\'t AMD\'s and Intel\'s instruction sets different? How does the executable work on both? How exactl

2条回答
  •  余生分开走
    2020-12-31 05:53

    Essentially these days, compilation is done for the OS not for hardware, as most hardware have universal protocols and/or tech, as mentioned above, x86 or x64 machine code/opcodes/instruction sets, some programmers do make software designed to run better on certain hardware i.e optimized for AMD or Intel etc... but still have other versions for other hardware mainly due to the OS you need to worry about bit length and or running OS most compilers or software makers tend to compile out to shared machine code instead of manufacturer specific, it should be remember different people use the same things in a different way, the guys in MIT, may decide to code their own OS for their needs and may want to use advance specific features of Intel ins tsrcution set some people fully re do their own androids etc...

提交回复
热议问题