Re:How to Build an Evil Compiler
by kibwen on Monday April 18, 2022 @04:17PM
(#31075910)
> Also DDC can’t even be applied to newer languages like Rust with only one compiler.
This is mistaken, as there exists a second Rust "compiler" known as mrustc (written in C++). I put "compiler" in quotes, as it doesn't implement all of Rust's static analysis, so it's more like an alternative code generator. That said, it still suffices to build the compiler itself (it was originally devised as a rustc bootstrapping tool), and it has been used in the past to successfully perform DDC.
This is mistaken, as there exists a second Rust "compiler" known as mrustc (written in C++). I put "compiler" in quotes, as it doesn't implement all of Rust's static analysis, so it's more like an alternative code generator. That said, it still suffices to build the compiler itself (it was originally devised as a rustc bootstrapping tool), and it has been used in the past to successfully perform DDC.