英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论