Why don't languages like java or python directly convert code in machine language like C++?:
What are the reasons for this since the fact that machine language is faster than byte code? I'm just curious.
Why don't languages like java or python directly convert code in machine language like C++?:
What are the reasons for this since the fact that machine language is faster than byte code? I'm just curious.
对于 Java,答案是可移植性。编译成机器代码会减少可以编写的可用平台的数量。虚拟机是一个很好的解决方案。这里有更多信息:http ://www.cs.umd.edu/~clin/MoreJava/Cycle/compile.html