JIT通过将代码编译成机器码,这样可以减少翻译Python指令的时间,以此提高代码的执行速度。 “在CPython里,” Winter 解释道,“这一部分的开销很大;在这方面只做了较小的调整就使CPython 2.7有了近15%速度提升。”
Using a JIT will speed up execution by compiling to machine code, thus eliminating the overhead of fetching, decoding, and dispatching Python opcodes.
编译器生成的指令就是将要执行的机器码,一般情况下,可以很合理地理解它们的时间特征。
The instructions generated by the compiler are the actual machine instructions that are going to be executed, and their timing characteristics are reasonably well understood in the common cases.
您可能永远不希望或不需要用不是组合语言形式的原始、数值形式,来检视机器码指令。
You probably will never have the desire or need to view machine-code instructions in their raw, numeric form, rather than assembly language.
设定指令指标,指向机器码中所指定的位移位置。
Sets the instruction pointer to the specified offset location in native code.
取得值,指出将指令指标设定为机器码中指定的位移位置是否安全。
Gets a value that indicates whether it is safe to set the instruction pointer to the specified offset location in native code.
取得值,指出将指令指标设定为机器码中指定的位移位置是否安全。
Gets a value that indicates whether it is safe to set the instruction pointer to the specified offset location in native code.
应用推荐