Skip to content

[AUTOMATED] byte_match scores depend on GCC version, with stale cache results across toolchains #127

Open

Description

@sjkim1127

Summary

The byte_match metric is sensitive to the recompiler toolchain, but the current cache key does not include the compiler's actual identity or version.

I ran a controlled experiment using identical decompiled output across GCC 12.4.0, 13.3.0, and 14.2.0. The results demonstrate two distinct issues:

  1. Toolchain sensitivity: Compilation success and byte-match scores can change solely because of the GCC version, even when the decompiled output remains identical.
  2. Cache correctness: Results computed with one GCC version can be reused incorrectly when the toolchain changes, because the cache key identifies the compiler by executable name rather than version.

These observations do not establish a general ranking of decompilers. They indicate that the evaluation environment must be explicitly controlled for reproducible comparisons.

Suggested improvements

  • Include the compiler's version, target triple, and relevant toolchain identity in the byte_match cache key.
  • Invalidate existing cached results when the cache key schema changes.
  • Record the recompiler version and effective compilation flags in benchmark metadata.
  • Pin the compiler toolchain used for published benchmark results.
  • Clearly distinguish compilation failures from successful recompilations that produce different machine code.
  • Consider validating compiler-target compatibility before scoring, particularly for cross-platform environments.

Matching the original compiler version recorded in DW_AT_producer may improve comparability, but exact version matching should not necessarily be a prerequisite for evaluation.

Scope

These findings are based on a local, unofficial C++ corpus consisting of ninja, double-conversion, and snappy on Linux AArch64. They should be interpreted as evidence of toolchain sensitivity and cache invalidation issues, not as general decompiler performance rankings.

Activity

  1. changed the title [-]byte_match depends on the recompiler's GCC version, and its cache ignores that version[/-] [+][AUTOMATED] byte_match depends on the recompiler's GCC version, and its cache ignores that version[/+] on Nov 20, 2026
  2. changed the title [-][AUTOMATED] byte_match depends on the recompiler's GCC version, and its cache ignores that version[/-] [+]제목 [AUTOMATED] byte_match scores depend on GCC version, with stale cache results across toolchains[/+] on Nov 21, 2026
  3. changed the title [-]제목 [AUTOMATED] byte_match scores depend on GCC version, with stale cache results across toolchains[/-] [+][AUTOMATED] byte_match scores depend on GCC version, with stale cache results across toolchains[/+] on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions