A Survey of Code-to-Code Translation: From Statistical Rule-Based Systems to LLM Agents
Zhiwang Zhang, Shiting Wen, Zhengkai Yan, Bang Zhu, Chengtao Shen, Hui Guo
Key points
From the paper's conclusion- We accordingly propose complementary evaluation criteria and discuss executable repository-level evaluation, transparent error taxonomies, security, licensing, and compliance risks, and low-resource, ecosystem-mismatched language pairs.
Abstract
Code-to-code translation aims to automatically convert a program written in one programming language into a semantically equivalent, executable program in another language, and is a key enabling technology for legacy-system modernization, cross-platform migration and software supply-chain security. The field has evolved from handwritten rules and statistical machine translation, through pre-trained model fine-tuning and unsupervised back-translation, to LLM prompting, execution-feedback repair and multi-agent collaboration. This survey reviews work from 2013 to 2026. Using a literature search and selection process reported according to PRISMA 2020, we identify 47 included method entries and organize them in a two-level taxonomy of three families and ten subclasses. We compare these entries under an explicit coding scheme, summarize CodeXGLUE results together with their comparability limits, and organize datasets, benchmarks, and multilevel evaluation signals. Using four review questions on datasets, evaluation, open gaps, and trade-offs as a framework, we argue that the central challenge of the LLM era is practical reliability: whether a translation can be compiled, tested, reproduced, and integrated, rather than merely resemble a reference. We accordingly propose complementary evaluation criteria and discuss executable repository-level evaluation, transparent error taxonomies, security, licensing, and compliance risks, and low-resource, ecosystem-mismatched language pairs.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- CodeTransBenchmark: evaluating LLM-based code translation and repair across programming languagesEmpirical Software Engineering · 2026
- TransAgent: Enhancing LLM-Based Code Translation via Fine-Grained Execution AlignmentProceedings of the ACM on software engineering. · 2026
- Code–Test Co-translation: Towards Practical and Effective Program Migration in the WildProceedings of the ACM on Programming Languages · 2026
- LLM-Assisted Software Migration: from Module-Level Transformation to Repository-Level IntegrationarXiv · 2026
- Hallucinations of Large Language Models in Cross-Language Code Translation: Phenomena and MitigationarXiv · 2026
- RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code TranslationIEEE Transactions on Software Engineering · 2025