Two pass assembler and virtual machine