# DDisasm: A Disassembler That Can Reassemble

Original title: DDisasm: Reversible (bi-directional) Disassembler

> Hacker News story 49151146 · language: en · submitted 2026-08-03
> Web version: https://zeli.app/story/49151146
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 65 · by [aboardRat4](<https://news.ycombinator.com/user?id=aboardRat4>) · 💬 6
[original](<https://github.com/GrammaTech/ddisasm>) · [HN discussion](<https://news.ycombinator.com/item?id=49151146>)

## Summary

DDisasm is a fast and accurate disassembler that produces assembly code precise enough to be reassembled. It uses Datalog logic programming to analyze ELF and PE binaries across x86, ARM, and MIPS architectures, identifying code locations, symbols, and function boundaries. The output is converted to the GTIRB intermediate representation, enabling programmatic rewriting and reassembly via the GTIRB pretty printer.

## Key quote

> DDisasm is a fast disassembler which is accurate enough for the resulting assembly code to be reassembled.

## HN discussion (6 comments)

### [BobbyTables2](<https://news.ycombinator.com/item?id=49227861>)

> How does this actually work in practice?
>
> I suppose altering instruction count or size still dooms the executable to become non-functional?
>
> Or do all absolute & relative code & data references all get magically updated?

### [aboardRat4](<https://news.ycombinator.com/item?id=49151147>)

> HN does not seem to have discussed ddisasm enough.
>
> When I discovered it, I was amazed, astonished, stunned, thrilled, and in disbelief.
>
> It turns out that it actually works.

### [sterlind](<https://news.ycombinator.com/item?id=49227210>)

> ooh souffle!
>
> wonder how they avoid saturation explosion. that's doomed my souffle projects in the past. but obviously they've found a way to partition (maybe by block?)

---

## Cite

- Page: https://zeli.app/story/49151146
- Date: 2026-08-03
- Source: github.com (https://github.com/GrammaTech/ddisasm)
- Hacker News: https://news.ycombinator.com/item?id=49151146

## Other languages

- zh: https://zeli.app/zh/story/49151146 · markdown: https://zeli.app/zh/story/49151146.md
- ja: https://zeli.app/ja/story/49151146 · markdown: https://zeli.app/ja/story/49151146.md
- ko: https://zeli.app/ko/story/49151146 · markdown: https://zeli.app/ko/story/49151146.md
- de: https://zeli.app/de/story/49151146 · markdown: https://zeli.app/de/story/49151146.md
- es: https://zeli.app/es/story/49151146 · markdown: https://zeli.app/es/story/49151146.md
