问题描述
我简要介绍了,这是一个用Java编写的开源JVM实现。这对我来说听起来很圆润。如果java需要运行虚拟机,虚拟机本身如何用Java编写(VM代码不会需要运行的VM,等等吗?)。
I was briefly reading about Maxine which is an open source JVM implementation that written in Java. This sounds circular to me. If java requires a virtual machine to run in, how can the virtual machine itself be written in Java (won't the VM code require a VM in which to run, and so on?).
编辑:好的,所以我看到我忽略了Java不必在VM中运行的事实。那么如何解释如何在LISP中编写LISP编译器?或者这应该是一个新问题?
Edit: Ok, so I see I overlooked the fact that Java doesn't have to run in a VM. How then does one explain how a LISP compiler can be written in LISP? Or should this be a new question altogether?
推荐答案
您认为Java需要虚拟机。
Your assumption that Java requires a virtual machine is incorrect to begin with.
这篇关于如何用Java编写JVM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!