为什么是 x86 小端? [英] Why is x86 little endian?

查看:30
本文介绍了为什么是 x86 小端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近一直在问自己一个真正的问题是什么设计选择使 x86 成为小端架构而不是大端架构?

A real question that I've been asking myself lately is what design choices brought about x86 being a little endian architecture instead of a big endian architecture?

推荐答案

在很大程度上,出于同样的原因,在添加时从最低有效数字(右端)开始——因为进位会向更有效的数字传播.将最低有效字节放在最前面允许处理器在仅读取偏移量的第一个字节后开始添加.

Largely, for the same reason you start at the least significant digit (the right end) when you add—because carries propagate toward the more significant digits. Putting the least significant byte first allows the processor to get started on the add after having read only the first byte of an offset.

在您完成足够多的汇编编码和调试之后,您可能会得出结论,小端不是一个奇怪的选择——我们人类使用大端很奇怪.

After you've done enough assembly coding and debugging you may come to the conclusion that it's not little endian that's the strange choice—it's odd that we humans use big endian.

这篇关于为什么是 x86 小端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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