Skip to content

xref v0.0.3

Choose a tag to compare

@alex09x alex09x released this 01 Nov 11:01
· 25 commits to main since this release
6b2053d

Highlights

  • Backward Program Slicing (xref slice <ADDR> --to <TARGET> [--fields]): Extracts a compact backward slice of reaching variable definitions, enclosing control-flow conditions, and early-exit precondition guards leading to a target call, field, or instruction address.
  • Cross-Build Pseudo-C Diff (xref diff-c --other <OTHER_BIN> <ADDR...> [--fields]): Matches stripped functions across builds via xref match invariants, normalizes volatile fn_<hex> and L_<hex> addresses to stable positional identifiers (@fn_N, @L_N), and emits a unified diff of pure logic changes.
  • Struct & Vec<T> Field Sugar (xref c --fields & Typed C (->) Web Tab): Lifts raw *(T *)(reg + 0x...) pointer arithmetic into readable reg->f_<off>, &reg->sub_<off>, and reg->vec_<off>.{ptr,len,cap} expressions inferred by xref layout.
  • Parallel Modular Source-Tree Dump (xref dump --out <DIR> [--src <PATTERN>] [--fields]): Decompiles functions in parallel across CPU cores into a structured module directory tree (<crate>/src/.../*.c) reconstructed from embedded source-path strings.