PHP + LLVM •PECL::LLVM → Zend bytecode to LLVM assembly compiler, unmaintained http://pecl.php.net/package/llvm Compiles Zend bytecode to LLVM assembly and then into optimized machine code. • Roadsend PHP / Raven • Static analyzer which dumps (in XML) • Tokens / AST / Generated IR • Various analysis passes • Port of phc optimizer passes
架構於 LLVM 的程式語言實做(2) • IcedTea Version of Sun's OpenJDK (RedHat) • Zero: processor-independent layer that allows OpenJDK to build and run using any processor • Shark: Zero's JIT compiler: uses LLVM to provide native code generation without introducing processor-dependent code. http://icedtea.classpath.org • Emscripten • LLVM-to-JavaScript compiler • It takes LLVM bitcode and compiles that into JavaScript, which can be run on the web (or anywhere else JavaScript can run). http://code.google.com/p/emscripten/ 35