Simuliert eine JVM.
Zur Zeit funktioniert nur ein begrenzte Anzahl an op-codes. Dieses Programm ist OpenSource:
https://gitlab.com/neoexpert/jvm
Beispiel-Programm, das ausgeführt werden kann:
public class Main {
public static void main(String[] args) {
fak(10);
}
public static int fak(int i){
if(i<=0)
return 1;
return i*fak(i-1);
}
}
模拟JVM。
目前只有有限数量的操作码。这个程序是OpenSource:
https://gitlab.com/neoexpert/jvm
可以执行的示例程序:
公共类Main {
public static void main(String [] args){
FAK(10);
}
public static int fak(int i){
如果(I <= 0)
返回1;
返回i * fak(i-1);
}
}