NAME ^

src/pdump.c - Dump or convert Parrot bytecode (PBC) files

SYNOPSIS ^

        % make pdump

        % ./pdump [-tdh] [--terse|--disassemble|--header-only] file.pbc

        % ./pdump -o converted.pbc file.pbc

DESCRIPTION ^

A program to dump pack files to human readable form.

Command-Line Options ^

-d

Disassemble bytecode segments.

-h

Dump the bytecode header only.

-t

Terse output.

-o converted.pbc

Repacks a PBC file into platforms native binary format for better efficiency on reading non native PBCs.

Functions ^

static void const_dump(Interp *interpreter, struct PackFile_Segment *segp)

Dump the constant table.

static void fixup_dump(Interp *interpreter, struct PackFile_Segment *segp)

Dump the fix-up table.

static void disas_dump(Interp *interpreter, struct PackFile_Segment *self)

Disassemble and dump.

static void PackFile_header_dump(Interp *interpreter, struct PackFile *pf)

Dump the header.

static void help(void)

Print out the user help info.

int main(int argc, char **argv)

The run loop. Process the command-line arguments and dumps accordingly.

SEE ALSO ^

src/packdump.c.


parrot