Implement the bytecode compiler.