英文:
Go target language
问题
Go语言编译成了什么?似乎没有人在网络上写明。我正在寻找目标语言。我认为可能是汇编语言、C语言或可重定位机器码。
英文:
What is the Go language compiled to? Nobody seems to want to write it anywhere on the net. I am searching for the target language. I am thinking it's probably assembly, C, or relocatable machine code?
答案1
得分: 6
参考实现将Go编译为本机机器码。生成的代码是不可重定位的。
该语言的设计允许其他目标平台。例如,有将Go代码编译为JavaScript和PHP的实现。
不可能在共享库中使用Go代码。
英文:
The reference implementation compiles Go to native machine code. The code is generated to be not relocateable.
The language has been designed to allow other target platforms as well. For instance, there are implementations that compile Go code into Javascript and PHP.
It is not possible to use Go code in a shared library.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论