Are there any PHP-> LLVM IR translators?

I need to compile PHP source code into LLVM bit code. I tried Raven PHP ( http://code.roadsend.com/rphp ) and it could do what I want, but the project seems dead. So I wanted to check out a few more possible projects.

After that, I found the PECL extension for phpllvm ( http://svn.php.net/viewvc/svn/pecl/llvm/ ). I even almost did it to start with trunked LLVM, but after carefully studying the code, I realized that LLVM code is only generated when the corresponding PHP function is executed. Unfortunately, this is not what I want.

Therefore, I am wondering if there are any other projects for translating PHP into LLVM, and if not, how, in your opinion, is it best to implement this?

About LLVM:

The LLVM project is a collection of modular and reusable compiler and tool chain technologies.

+6
source share
2 answers

You did not say what your goal is. If this is simply the best performance and easy accessibility, you can consider the HipHop PHP compiler .

+4
source

Using llvm ir byte code, you can run php in gralvm!

0
source

All Articles