Developer knowledge network · moderated exchange

مجتمع الكود غير الموثوق به

أبحاث المطورين، مجتمع الهندسة العكسية والترميز

Knowledge indexيعيش
4Categories
919Threads
2.8Kدعامات
Analysis

Comparing Ghidra Decompiler vs Hex-Rays AST optimization pipelines [v2.4 Technical Discussion]

ida_ast_hacker
Microcode Dev
MEMBER
مندوب: 74
تاريخ الانضمام: Nov 2022
دعامات: 6
شكرًا: 48
2 weeks ago · Aug 3, 2026 11:28 AM
#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
2 weeks ago · Aug 3, 2026 4:53 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 weeks ago · Aug 4, 2026 3:22 AM
#3

Great architectural comparison.