3 ms·
> The output of c2rust looks more like a literal projection from C into Rust, Corrode tried to limit the use of unsafe. I don't think either statement is true.
by masklinn 8y ago
> The output of c2rust looks more like a literal projection from C into Rust, Corrode tried to limit the use of unsafe.
I don't think either statement is true. Both projects bill themselves as semantics-preserving translators, as in they try to generate Rust code which compiles and works the same way the original C code did (in fact corrode has a cc script which first compiles C to Rust then Rust to native).
Citrus is the literal projection: it's not semantics-preserving and usually doesn't generate compilable code.