Tag
Cpp2Rust is an open-source tool that automatically translates C++ code to safe Rust using clang's AST and a runtime library, enabling safe memory-safe conversion with support for both safe and unsafe output modes.
This paper introduces SwiftTrans, a framework that addresses the overlooked issue of runtime efficiency in LLM-based code translation, achieving consistent improvements in both correctness and efficiency across benchmarks.
This paper proposes CTO, a method that improves code translation by combining syntax-guided and semantic-aware preference optimization through contrastive learning and direct preference optimization, achieving significant improvements over existing baselines in C++, Java, and Python translations.