Developer knowledge network · moderated exchange

UnreliableCode қауымдастығы

Әзірлеушілерді зерттеу, кері инженерия және кодтау қауымдастығы

Knowledge indexТірі
4Categories
919Threads
2.8KЖазбалар
Analysis

Comparing Ghidra Decompiler vs Hex-Rays AST optimization pipelines

ida_ast_hacker
Microcode Dev
MEMBER
Өкіл: 74
Қосылу күні: Nov 2022
Хабарламалар: 6
Рахмет: 48
3 апта бұрын · Aug 2, 2026 4:43 PM
#1

Deep comparison of decompiler internals:

  • Ghidra: Converts native assembly into high-level P-Code SSA (Static Single Assignment) form, applies graph simplification, and reconstructs control flow using an open architecture.
  • Hex-Rays (IDA Pro): Translates assembly into multi-tiered Microcode (mcode), executes over 20 optimization passes (type propagation, dead register elimination, loop normalization), and outputs a C-tree AST.

Hex-Rays produces tighter struct field access dereferences, while Ghidra excels at cross-architecture flexibility.

ghidra_fanatic
RE Specialist
MEMBER
Өкіл: 101
Қосылу күні: Mar 2019
Хабарламалар: 16
Рахмет: 14
3 апта бұрын · Aug 2, 2026 8:21 PM
#2

Both are remarkable engineering achievements. Having Ghidra free for the community pushed the entire industry forward.

vtable_slayer
Senior Reverser
MEMBER
Өкіл: 215
Қосылу күні: Mar 2018
Хабарламалар: 86
Рахмет: 61
2 апта бұрын · Aug 3, 2026 10:45 AM
#3

Great architectural comparison.