---
name: "pbc_dump"
section: "1"
platform: "linux"
package: "parrot-devel"
version: "6.6.0-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/pbc_dump"
---

# pbc\_dump(1)

Dump or convert Parrot bytecode (PBC) files

## NAME

pbc\_dump - Dump or convert Parrot bytecode (PBC) files

## SYNOPSIS

```
 pbc_dump [-tdh] [--terse|--disassemble|--header-only] file.pbc
 pbc_dump -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 the platform's native binary format for better efficiency on reading non-native PBCs.

### Functions

- "static void const\_dump(PARROT\_INTERP, const PackFile\_Segment \*segp)"

  Dump the constant table.

- "static void disas\_dump(PARROT\_INTERP, const PackFile\_Segment \*self)"

  Disassemble and dump.

- "static void nums\_dump(PARROT\_INTERP, const PackFile\_Segment \*self)"

  Disassembles and dumps op names and line numbers only.

- "static void null\_dump(PARROT\_INTERP, const PackFile\_Segment \*self)"

  Produces no output for the given segment type.

- "static void null\_dir\_dump(PARROT\_INTERP, const PackFile\_Segment \*self)"

  Dumps all of the segments of the given PackFile\_Directory, but produces no output for the directory itself.

- "static void PackFile\_header\_dump(PARROT\_INTERP, const PackFile \*pf)"

  Dump the header.

- "static void help(void)"

  Print out the user help info.

- "int main(int argc, const char \*\*argv)"

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

## SEE ALSO

*src/packdump.c*.
