Matt S Trout > Rakudo-Star-2012.08_001 > tools/dev/dump_pbc.pl

Download:
Rakudo-Star-2012.08_001.tar.gz

Annotate this POD

Source  

NAME ^

tools/dev/dump_pbc.pl - Weave together PBC disassembly with PIR source

SYNOPSIS ^

 perl tools/dev/dump_pbc.pl foo.pbc

DESCRIPTION ^

dump_pbc.pl uses Parrot's pbc_disassemble program to disassemble the opcodes in a PBC (Parrot ByteCode) file, then weaves the disassembly together with the original PIR source file(s). This makes it easier to see how the PIR syntactic sugar is desugared into raw Parrot opcodes.

BUGS ^

This program has only been tested for a few simple cases. Also, the name might suggest a different use than its actual purpose.

While it is not a bug in dump_pbc.pl per se, there is a line numbering bug for some PBC opcode sequences that will result in the disassembled opcodes appearing just before the source lines they represent, rather than just after. There does not appear to be consensus yet about where this bug actually resides.

syntax highlighting: