PHP Jit编译器
配置
$ llvm = \ Serafim \ Jit \ Compiler :: fromLibrary ( '/path/to/llvm.so' );
$ llvm -> target ( new \ Serafim \ Jit \ Target \ X86Target ());
例子
use Serafim \ Jit \ Compiler ;
use Serafim \ Jit \ ImportFunction ;
use Serafim \ Jit \ Target \ X86Target ;
$ llvm = Compiler :: fromLibrary ( '/path/to/llvm.so' );
$ llvm -> target ( new X86Target ());
$ entry = $ llvm -> entry (
#[Impor
2021-11-25 15:25:40
29KB
C
1