The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.