4 ms·
doesn't it also use an older fork of LLVM rather than branching/rebasing off of master? That could account for losing out on optimizations.
by ynx 7y ago
doesn't it also use an older fork of LLVM rather than branching/rebasing off of master? That could account for losing out on optimizations.
- fluffything 7y agoThe Rust toolchain distributed by the Rust project bundles an LLVM version that's very close to LLVM master. IIRC, this version has some patches on top to allow Rust to query some backend information, but I'm not sure if this information is still up-to-date. Rust can, however, work with an external LLVM. When installing Rust through a package manager, e.g., on Linux, typical Linux distros like Debian, RH, Ubuntu, etc. configure Rust to use the system-wide LLVM binaries. So if you have Debian, and say LLVM 8.0 installed, you can just compare the installed clang 8.0 with the Rust version installed by the Linux distro. That will not compare the "bleeding edge" clang vs Rust toolchains, but it would be a fair comparison of Clang vs Rust at a particular point in those toolchains lifes.