NEW COMPILER JUST DROPPED rustc_codegen_utc is an alternative code generation ba...
Cindʎ Xiao 🍉 @cxiao@infosec.exchange
NEW COMPILER JUST DROPPED
rustc_codegen_utc is an alternative code generation backend for rustc, in the same architectural family as rustc_codegen_llvm, rustc_codegen_gcc and rustc_codegen_cranelift. It plugs into the same backend interface and connects rustc’s shared compiler machinery to the MSVC backend (aka “UTC“).
as mentioned one of the main reasons was rust/c++ interop and compatibility with existing MSVC-based tooling at microsoft:
It participates in a broader platform ecosystem strategy to support:
High compatibility with the Windows tooling eco-system and ABI
Binary hardening and code security features
Post-link compliance, analysis, and servicing (including Hotpatch)
Seamless Rust/C++ interop for hybrid projects
Cross-language inlining, optimization, and SPGO (Sample Profile Guided Optimization)
Debugging and crash-dump analysis
Profiling, diagnostics, and coverageThese capabilities and workflows have been built over many years with the MSVC tech-stack. Connecting rustc to that backend lets Rust build on the same platform investment, with perfect compatibility out of the box, rather than requiring a parallel implementation of every Windows-specific capability.
The result is a unified code generation platform for Rust and C++ on Windows.
https://rustfoundation.org/media/guest-post-rust-is-tier-1-language-at-microsoft/