为什么可执行文件可以同时在Intel和AMD处理器上运行? [英] Why can an executable run on both Intel and AMD processors?

查看:357
本文介绍了为什么可执行文件可以同时在Intel和AMD处理器上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可执行文件如何在AMD和Intel系统上都能工作. AMD和Intel的指令集是否有所不同?可执行文件如何在两者上工作?他们如何精确地编译文件以使其工作.操作系统在这一切中的作用到底是什么?

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 exactly do they compile the files to work like that. And what exactly is the role of the OS in all this?

推荐答案

这些天来,基本上是针对OS而不是针对硬件进行编译,因为大多数硬件具有x86或x64机器,如上所述,具有通用协议和/或技术.代码/操作码/指令集,某些程序员确实制作了旨在在某些硬件上更好运行的软件,即针对AMD或Intel等进行了优化... 但仍然有其他硬件的其他版本 主要是由于操作系统,您需要担心位长和/或正在运行操作系统 大多数编译器或软件制造商倾向于编译为共享的机器代码,而不是特定于制造商的机器代码,应该记住,不同的人以不同的方式使用相同的东西,麻省理工学院的人可能会决定为自己的需求编写自己的操作系统,并且可能想要使用Intel ins tsrcution的高级特定功能设置某些人完全重新做自己的android等...

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

这篇关于为什么可执行文件可以同时在Intel和AMD处理器上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆