简体   繁体   English

当前的HipHop PHP是php2C ++翻译还是JIT?

[英]Does the current HipHop PHP a php2C++ translator or a JIT?

I have been searching for documentation of HipHop, and found the paper The HipHop Compiler for PHP which describes a compilation approach from PHP to C++ statically. 我一直在寻找HipHop的文档,并找到了文章The HipHop Compiler for PHP ,它描述了从PHP到C ++的静态编译方法。

While, in the source code it says this is a virtual machine and does JIT dynamically. 虽然在源代码中它说这是一个虚拟机,并动态地执行JIT。

How can I use the static compilation given the current code base? 在给定当前代码库的情况下,如何使用静态编译?

Thank you. 谢谢。

HipHop started out with a static (aka ahead of time, AOT) compiler. HipHop开始时使用静态(也就是提前,AOT)编译器。 Over time, this approach turned out to be undesirable and a VM with JIT compiler, HHVM, was developed under the same name and in the same repo. 随着时间的推移,这种方法被证明是不可取的,并且使用JIT编译器HHVM的VM是在相同的名称和相同的repo中开发的。 The static compiler, HPHPc, as well as a related interpreter, HPHPi, was phased out. 静态编译器HPHPc以及相关的解释器HPHPi已逐步淘汰。 This has happened over the last year or so at least. 这种情况至少在过去一年左右发生过。 By now, everything but HHVM has been dropped completely and even mentions of it in the wiki at GitHub have been removed. 到目前为止,除HHVM之外的所有内容都已完全删除,甚至在GitHub的wiki中提到它也已被删除。 The last revision that still mentioned it is two months old: https://github.com/facebook/hiphop-php/wiki/Home/bb5c90c860bf87315c1981641c2aa5a318192a9a#hhvm-versus-older-hiphop-execution-engines 仍然提到它的最后一个版本是两个月: https//github.com/facebook/hiphop-php/wiki/Home/bb5c90c860bf87315c1981641c2aa5a318192a9a#hhvm-versus-older-hiphop-execution-engines

HipHop currently contains only one PHP implementation, which is a JIT compiler. HipHop目前只包含一个PHP实现,它是一个JIT编译器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM