Rust and GCC, two different ways
Rust and GCC, two different ways
Posted Oct 11, 2021 16:51 UTC (Mon) by moltonel (subscriber, #45207)In reply to: Rust and GCC, two different ways by ncm
Parent article: Rust and GCC, two different ways
Most of the time is spent in the backend, which is why rustc's cranelift backend (which predates rustc_codegen_gcc and focuses on quick but unoptimized compilation) is very interesting for debug builds. There are surely going to be differences between the GCC and LLVM backends, but judging by the Clang vs Gcc benchmark for C and C++, there's not going to be one clear winner. Same goes for the speed of the compiled code.
Rust is a complex language, it's never going to compile as fast as Go. It compiles about as fast as C++ (comparisons are hard, beware of apples-to-oranges), which is what you can hope for.
