Originally posted by mmstick
View Post
(Cretonne is an in-development WASM code generator backend for Firefox's SpiderMonkey JS engine so they can eliminate C-inspired undefined behaviour at the LLVM IR level and optimize for compile time constraints in a web context. Both of those would fit well alongside things like "Rust debug builds turn on the too-heavy-for-release guards for integer over/underflow" so that Cretonne and LLVM would take up roles similar to the C/C++ "do debug builds with Clang for the superior analysis, do release builds with GCC for maximum performance" pattern.)
As for GCC, the following three lines have already shown up in that thread:
It will help us validate that Rust is independent from LLV
I agree that it's important to not tie a system language too much to a single back-end. How about also using the GCC back-end?
I am a GCC contributor, if there's interest in a GCC backend I would be able to help. Although, I must say, I know little of Rust at this point so I wouldn't be able to carry this project forward by myself. Someone with a deep knowledge of Rust would need to mentor.
Leave a comment: