Automatically Translating C to Rust
Communications of the ACM · 2025-11 · 68 (11) · 58-65
DOI: 10.1145/3737696 ↗Kurz gefasst
Fachartikel in der Zeitschrift Communications of the ACM, online erschienen am 29.10.2025. Verfasst von Jaemin Hong und 1 weiteren Autor:innen. Die Arbeit wurde bisher 8-mal zitiert (Crossref) und nennt 33 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Legacy system programs developed in C have suffered from prevalent memory bugs. Migrating these systems to Rust is a promising way to enhance reliability, thanks to Rust’s strong safety guarantee. Due to the high cost of manual migration, automatic C-to-Rust translators are essential for enabling the migration of real-world systems. However, existing translators generate unsatisfactory code by relying on language features whose safety is not validated by the compiler and code patterns considered unidiomatic by Rust developers. To improve the quality of automatic translation, static analysis and code transformation can be employed to replace unsafe features and unidiomatic patterns with safe and idiomatic alternatives. This article discusses the research community’s efforts to address scalar pointers, locks, unions with tags, and output parameters, and introduces remaining unsafe features and unidiomatic patterns that future work should tackle. Furthermore, we explore the potential of using large language models for C-to-Rust translation.
Zitieren
APA
Hong, J., & Ryu, S. (2025). Automatically Translating C to Rust. Communications of the ACM, 68(11), 58-65. https://doi.org/10.1145/3737696
Vancouver
Hong J, Ryu S. Automatically Translating C to Rust. Communications of the ACM. 2025;68(11):58-65. doi:10.1145/3737696
BibTeX
@article{Hong2025,
author = {Hong, Jaemin and Ryu, Sukyoung},
title = {Automatically Translating C to Rust},
journal = {Communications of the ACM},
year = {2025},
volume = {68},
number = {11},
pages = {58--65},
doi = {10.1145/3737696}
}
EUVIMED