Rust GCC Front-end
summary
A full Rust front end for GCC that parses, macro-expands, type-checks and lowers Rust into GCC trees and reuses libcore/libstd is under active development, aiming to be a usable alternative to rustc. Current work focuses on compiling libcore 1.49 (with some experiments on 1.29), implementing intrinsics, closures and big types, matching Rust error codes, and a Polonius-based borrow checker branch. Integration notes: GCC-style flags for invocation, no Cargo in kernel builds, and ongoing versioning plans to declare a minimum Rust target.
AI-written summary · about
chapters (14)
- 0:00Introduction to gccrs
- 1:07What is gccrs project
- 2:55Project goals and libcore
- 5:25Unstable features and Rust for Linux
- 7:11Stabilizing Rust for Linux features
- 8:59Versioning and compiler compatibility
- 14:16Compiler invocation and GCC flags
- 16:45Cargo and kernel build system
- 17:27Liballoc and kernel needs
- 20:58Subsetting liballoc and libcore
- 22:22Proc macros and build macros
- 23:27Future of Rust language evolution
- 25:33Project vision and ecosystem growth
- 26:58Q&A and closing
related talks
30mgccrs: An alternative compiler for Rust
24mThe road to compiling the standard library with gccrs
36mInching ever closer to the Rust standard library with gccrs
44mCompiling the Linux Kernel with gccrs
58m(Almost) Everything You Should Know About The Compiler Frontend
01h 14mRust: A Friendly Introduction
32mrustc in userland
46mRust for Linux
