Understanding HHVM's Compilation Process & Bytecode

Written by Michael Larabel in Programming on 7 October 2014 at 12:05 PM EDT. 1 Comment
PROGRAMMING
For those into compilers, bytecodes, and low-level programming or just wanting to know why Facebook's HHVM project tends to be so much faster for PHP than PHP itself, here's a great article.

Sara Golemon of Facebook wrote on the official HHVM blog about the journey through the HipHop Virtual Machine's compilation process from PHP script to x86 code. Sara covered the lexing process of the simple PHP code, the parsing process, optimizations, compilation to the project's own bytecode, and then optimizations on the HHBBC, stepping into the HipHop intermediate representation, the virtual assembly, and finally the emitted machine code.

Those interested in HHVM as a faster alternative to PHP or for the Hack Language, see Sara Golemon's post entitled The Journey of a Thousand Bytecodes.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week