gpt4 book ai didi

networking - big-endian 有网络顺序的原因吗?

转载 作者:行者123 更新时间:2023-12-04 01:49:08 25 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





Why is network-byte-order defined to be big-endian? [closed]

(1 个回答)


9年前关闭。




似乎大多数现代(如过去 20 年)处理器都使用了小端,或者至少更喜欢它(如果是双端)。他们将 big-endian 设为所有网络协议(protocol)的通用顺序是否有原因?除了更容易用于大端处理器之外,它有什么实际优势吗?

最佳答案

选择大端可能是因为那个时代的大多数计算机(什么,1960 年代后期?)都使用它。

这么多年后,他们怎么能预测 80x86 系列的流行及其对小端序的使用?

根据Wikipedia :

An often-cited argument in favor of big-endian is that it is consistent with the ordering commonly used in natural languages.[9] Spoken languages have a wide variety of organizations of numbers: the decimal number 92 is/was spoken in English as ninety-two, in German and Dutch as two and ninety and in French as four-twenty-twelve with a similar system in Danish (two-and-four-and-a-half-times-twenty). However, numbers are written almost universally in the Hindu-Arabic numeral system, in which the most significant digits are written first in languages written left-to-right, and last in languages written right-to-left.

关于networking - big-endian 有网络顺序的原因吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5346267/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com