tools/dev/dump_pbc.pl - Weave together PBC disassembly with PIR source
perl tools/dev/dump_pbc.pl foo.pbc
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.
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.
To install Rakudo::Star, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rakudo::Star
CPAN shell
perl -MCPAN -e shell install Rakudo::Star
For more information on module installation, please visit the detailed CPAN module installation guide.