目标语言是什么?请提供目标语言的名称。

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

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.

huangapple
  • 本文由 发表于 2014年6月25日 04:59:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/24396170.html
匿名

发表评论

匿名网友

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

确定