Cross-Layer Characterization and AI-Assisted Diagnosis of C-to-Rust Performance
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
A UCLA/UC Davis arXiv paper compares C and hand-translated Rust on 12 benchmarks and finds bounds checks often are not the main cost: on 8 of 12, at least one Rust variant is within 10% of C or faster. Its AI-assisted debugger, FerroScope, traced some slowdowns to redundant bounds checks blocking loop unrolling. An LLVM pass hoisting those checks cut Selection Sort overhead from 2.95x to 1.00x and Merge Sort from 1.43x to 0.91x. These figures are the authors' own results, on a small benchmark set, and not independently checked.