Instruction set

如果需要做到跨平台操作,我们首先要判断的就是自己在什么平台上。
比如我们用uname -s查看操作系统,用uname -p查看处理器类别等。
实际上我们要确定的就是指令集体系结构。
只要指令集一致,不论操作系统、cpu怎样,相同的一个二进制执行文件(机器码)都是可以正常运行的
下面是对指令集体系结构、微处理器体系结构的介绍,资源来自维基百科。

Instruction (指令) 
In computer science, an instruction is a single operation of a processor defined by an instruction set architecture. In a broader sense, an "instruction" may be any representation of an element of an executable program, such as a bytecode.

instruction set architecture (指令集体系结构)
An instruction set, or instruction set architecture (ISA), is the part of the computer architecture related to programming, including the native data types, instructions, registers, addressing modes, memory architecture, interrupt and exception handling, and external I/O. An ISA includes a specification of the set of opcodes (machine language), the native commands implemented by a particular processor.
Instruction set architecture is distinguished from the microarchitecture, which is the set of processor design techniques used to implement the instruction set. Computers with different microarchitectures can share a common instruction set. For example, the Intel Pentium and the AMD Athlon implement nearly identical versions of the x86 instruction set, but have radically different internal designs.

microarchitecture (微处理器体系结构)
In computer engineering, microarchitecture (sometimes abbreviated to µarch or uarch) is the way a given instruction set architecture (ISA) is implemented on a processor. A given ISA may be implemented with different microarchitectures.[1] Implementations might vary due to different goals of a given design or due to shifts in technology.[2] Computer architecture is the combination of microarchitecture and instruction set design.

ISAs implemented in hardware

ISAs commonly implemented in software with hardware incarnations

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值