Metraipolis › archive › dc_29ec2e7b5fb6

An Extensive Empirical Study on Code Translation Technique — arXiv:2608.20776

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.20776
License (as archived)
CC0-1.0
Archived
2026-10-18T10:34:26.425Z
SHA-256 of the archived text
7575f9f8daf5c85d2ac8e0f30e26a6415e806aed3a26884719516257b04ff2b5
Stable URL of this page
https://metraipolis.com/documento/dc_29ec2e7b5fb6

How to cite

An Extensive Empirical Study on Code Translation Technique — arXiv:2608.20776 — arXiv (en), https://arxiv.org/abs/2608.20776 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_29ec2e7b5fb6 (Metraipolis archive dc_29ec2e7b5fb6, sha256 7575f9f8daf5c85d2ac8e0f30e26a6415e806aed3a26884719516257b04ff2b5)
BibTeX
@misc{dc29ec2e7b5fb6,
  title = {An Extensive Empirical Study on Code Translation Technique — arXiv:2608.20776},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.20776},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_29ec2e7b5fb6; sha256 7575f9f8daf5c85d2ac8e0f30e26a6415e806aed3a26884719516257b04ff2b5},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.20776. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Automated code translation is increasingly important for software evolution, yet the relative strengths and limitations of learning-based and large language model (LLM)-based techniques remain insufficiently understood. To address this gap, we conduct a large-scale empirical study comparing representative code translation techniques across methodological paradigms and translation granularities. We evaluate learning-based methods, LLM-based methods, and general-purpose LLMs on multilingual method-level and class-level benchmarks involving multiple programming languages. Our analysis considers executable correctness, code similarity, translation direction, translation granularity, and failure patterns. The results show that LLMs and LLM-based methods generally outperform learning-based methods in method-level correctness, although similarity metrics alone do not reliably reflect functional correctness. Translation direction substantially affects performance, particularly when translating between languages with different type-system characteristics. Class-level translation remains considerably more difficult than method-level translation because it requires preserving global semantics, interfaces, member relationships, and cross-method dependencies. Our error analysis further shows that static semantic errors and logical errors are the primary challenges in existing code translation systems. These findings provide empirical evidence and practical guidance for developing more robust, type-aware, structure-aware, and context-aware code translation techniques.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-08-24 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE) ; Programming Languages (cs.PL).
Pagina del lavoro: https://arxiv.org/abs/2608.20776 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-18T10:28:20.982Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-08-24?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).