# Is there a PB decompiler?

**URL:** <https://racket.discourse.group/t/is-there-a-pb-decompiler/1381>\
**Category:** Questions & Answers\
**Created:** [October 13, 2022, 9:21pm UTC](https://racket.discourse.group/t/is-there-a-pb-decompiler/1381 "2022-10-13T21:21:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [October 13, 2022, 9:21pm UTC](https://racket.discourse.group/t/is-there-a-pb-decompiler/1381/1 "2022-10-13T21:21:56Z")

</div>

I'm hoping this doesn't have an obvious documented answer: is there a way to decompile PB (portable bytecode) files? I see that the pb implementation went in around 2020, with substantial additions earlier this year in order to support pb\_chunk, but as far as I can tell there's no way to take a pb file and decode it into something approximating a sequence of instructions, is that correct?

Hmm, let's try @mflatt @LiberalArtist @adamperlin @pmatos @samth ?

---

<div class="post-metadata">

**Author:** ![mflatt](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/mflatt/32/6_2.png) [@mflatt](https://racket.discourse.group/u/mflatt)\
**Post date:** [October 14, 2022, 10:25pm UTC](https://racket.discourse.group/t/is-there-a-pb-decompiler/1381/2 "2022-10-14T22:25:55Z")

</div>

That's right — there is not currently a decompiler. I think it would make sense to add pb support to the `disassemble` package. Meanwhile, you get get something like that output by setting `PLT_LINKLET_SHOW_ASSEMBLY` while compiling the code (but that's no help if you alread have `.zo` files).
