可以从源代码编译适用于大端 ARM 架构的 Go 吗?

huangapple go评论75阅读模式
英文:

Can I compile go from source for big-endian arm?

问题

我知道在构建Go时可以使用GOARCH=arm来指定架构,但如何设置为大端字节序呢?它支持吗?

英文:

I know when building go can clarify GOARCH=arm, but how to set it for big-endian. Does it support?

答案1

得分: 4

答案是你从GitHub上的minux那里得到的:

> 只是提供信息,Go不支持大端ARM。

https://github.com/golang/go/issues/11079

<sup>(截至2015年6月5日)</sup>

编辑:原因在这里有记录1:支持的ARM架构都是小端的。理论上,你可以贡献自己的大端端口,但我认为这不会是简单的事情。

英文:

The answer is the one you got from minux on github:

> Just FYI, Go doesn't support big endian ARM.

https://github.com/golang/go/issues/11079

<sup>(As of June 5th 2015)</sup>

Edit: The reason is documented here: the ARM architectures supported are all little-endian. Theoretically, you could contribute your own big-endian port but I don't think that will be trivial.

huangapple
  • 本文由 发表于 2015年6月5日 10:50:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/30657603.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定