Lifting the Preprocessor with Oxidize: Structure-Preserving C-to-Rust Translation (Technical Report)
Robbe De Greef, Théo Engels, Felix Van den Broucke, Ken Hasselmann, Antonio Paolillo
Abstract
This technical report accompanies our EuroSys 2027 paper "Lifting the Preprocessor with Oxidize: Structure-Preserving C-to-Rust Translation" (DOI 10.1145/3842654.3848533). Oxidize is a C-to-Rust translator that retains C macros as Rust macros instead of expanding them away, so that the translated code keeps the abstractions its developers wrote. The report collects material the paper cites but has no room for: the translator's intermediate representation, pass structure and back-end emission; the details of macro typing through helper traits and the generic cast macro; the sources and pinned revisions of the nine evaluated C codebases; the per-codebase macro population and how macros are attributed to classes; a roadmap from structure-preserving translation toward safe Rust; the performance overhead study and its methodology; and the configuration and prompt used for the LLM-based baselines.
Create a lesson
Related papers
C-to-Rust Translation Validation at the LLVM IR Level via AI-Assisted Refinement Proof
Shared title terminology · Eunsu Kim, Sukyoung Ryu, Jaemin Hong
Irene: Equivalence Checking of Hybrid Quantum Programs via Structure-Preserving Symbolic Reduction
Shared title terminology · Jingyu Ke, Jingyang Li, Guoqiang Li
When Is Program Structure Required? Certificate-Grounded Calibration of Program-Induction Difficulty
Shared title terminology · Wenzhang Du
Partial Borrows in Rust
Shared title terminology · Sasha Pak, Richard Willie, Umang Mathur et al.
Crustify: Repository-Level Generation of Safe Rust Bindings with LLM Agents and Coverage-Guided Testing
Shared title terminology · Marius Momeu, Marius Arvinte, Cory Cornelius et al.
Verified Implementation of the Next-gen Borrow Checking Algorithm for Rust via Abstract Interpretation
Shared title terminology · Jinhua Wu, Yuting Wang, Zhemin Chen