Taking the standard bench.php as an example, I can do
~/views/hhvm/hiphop-php/src/hphp/hphp --target hhbc bench.php -o bench
and get it to emit the bytecode into a file in the bench/ dir. I thought doing "--target hhbc --format binary" would be the right way to emit the HHVM application. But doing
~/views/hhvm/hiphop-php/src/hphp/hphp --target hhbc --format binary /home/ecaspole/drachma-backup/bench.php -o b2
I get an assert
not implemented: /home/ecaspole/views/hhvm/hiphop-php/src/compiler/analysis/emitter.cpp:4711 emitHHBCVisitor
Is this the right way to emit an HHVM application? Is it even possible to do so on the current hhvm branch?