JIT是PyPy中PVM的一部分吗?

2024-06-28 14:36:12 发布

您现在位置:Python中文网/ 问答频道 /正文

enter image description here


JIT是PyPy中PVM的一部分吗


JIT是否将频繁使用的代码转换为机器代码?如果是这种情况,那么是否在不将其转换为机器代码的情况下解释剩余的代码(除了频繁执行的代码)


PyPy是实现还是解释器


Tags: 代码机器情况pypy解释器jitpvm
1条回答
网友
1楼 · 发布于 2024-06-28 14:36:12

Is JIT a part of the PVM in PyPy?

可以将JIT编译器视为虚拟机的一部分。不过,这只是定义的问题。如果有人画了一幅图,其中JIT被表示为一个单独的组件,它仅仅与VM紧密集成,我也会接受这一点

Does JIT translates frequently used code into machine code

is the remaining code (apart from the frequently executed one) interpreted without converting it into machine code?

是的,字节码将一直被解释,直到它执行得足够频繁,而代码中执行得不够频繁的部分将继续被解释

Is PyPy an implementation or an interpreter?

解释器是编程语言的实现

相关问题 更多 >