Bitcointalk · Big endinan code problems

中本聪,2010 年 8 月 29 日

SN-2339 已核对来源,附原文与上下文。

阅读语言
中文译文

这份代码从头到尾都假定小端序,写作时就打定主意永远不移植到大端平台。每一个经网络发送的整数都得做字节交换,代码里还有几十处其他地方要改。不值得为此让源码膨胀。

反正大端序也正在被淘汰。

ORIGINAL · 英文原文
The code assumes little-endian throughout and was written with the intention of never being ported to big-endian.  Every integer that is sent over the network would have to be byte swapped, in addition to many dozens of other places in code.  It would not be worth the extra sourcecode bloat.

Big-endian is on its way out anyway.
上下文
← 上一条 SN-2339 · 当前 下一条 → 在档案中查看完整主题串 →
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-2339