Algorithms

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

Review

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

A Survey of Code-to-Code Translation: From Statistical Rule-Based Systems to LLM Agents — Science Skim