W***i 发帖数: 9134 | 1 N多年前学的编译原理,一点印象也没有了。
Java,VB,C# 这些语言是先编译成Pcode,然后在执行的。
但是,Pcode是像汇编语言一样的东西呢?还是只是一个 execution stack? | r*********r 发帖数: 3195 | 2 p code is only used for pascal ... similar to JVM though.
it's an instruction set defined on a stack based machine.
( i.e. there are no registers in this machine, therefore ISA is much simpler) | W***i 发帖数: 9134 | 3 Java, VB什么也用的。。 jvm是一个运行环境,pcode在里面运行成机器代码
simpler)
【在 r*********r 的大作中提到】 : p code is only used for pascal ... similar to JVM though. : it's an instruction set defined on a stack based machine. : ( i.e. there are no registers in this machine, therefore ISA is much simpler)
| r*********r 发帖数: 3195 | 4 jvm is also a stack based machine, but its instruction set is more
complicated,
for example, it has exception throwing instruction, which i'm sure p-code
doesn't have. |
|