High-Level Compiler Architecture See also 写在前面 (Prologue) 相信大多数 Rustacean 在平时写代码的时候大多都是调用 cargo 而不是直接调用 rustc. 而且 up till the present moment, 谈起编译过程,我脑袋里全是 gcc 那套,而且还不够深刻,i.e., 编译器将源代码(高级语言编写)翻译成目标代码(机器语言)两...
编译器源码: 位于compiler/目录下,由五十多个crate构成。另外还有它会用到的llvm,位于src/llvm-project目录下。 内置库源码:位于library/目录下,有十几个crate。我们平时会使用的core, alloc, std, test这些都在其中。 其他开发工具:位于src/librustdoc/, src/tools/目录下,包括我们平时使用的rustdoc, cargo,...
Rust is known for its memory safety and zero-cost abstractions, which make it a good choice for building high-performance, reliable, and secure software. It’s particularly well-suited for system programming, web development, and embedded systems. ...
no-panic: Attribute macro to require that the compiler prove a function can't ever panic. panic-abort: Causes an abort on panics (nightly-only) panic-halt: Halts the processor on panics panic-itm: Prints the panic through the chip's ITM to a debugger attached to the SWO pin (Corte...
rustc API docs - rustdoc documentation for the compiler https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ Zulip Chat - rust-lang https://rust-lang.zulipchat.com/ Forum Rust Internals https://internals.rust-lang.org/ Guide to Rustc Development - Book https://rustc-dev...
Guide to Rust procedural macros Mar 30, 2022 •Nazmul Idris Procedural macros are a way for you to extend the Rust compiler and provide plugins that you can use to extend the language. They allow you to reduce the need to write manual boilerplate code, and even allow you to create your...
All Android processes are sandboxed and builders of the OS follow the “rule of two” guideline for code safety (namely, choose only two: code that handles untrustworthy inputs, code that uses unsafe implementation languages such as C and C++, or code that runs with no sandbox). While ...
The Complete Rust Programming Reference Guide是Rahul Sharma Vesa Kaihlavirta Claus Matzinger创作的计算机网络类小说,QQ阅读提供The Complete Rust Programming Reference Guide部分章节免费在线阅读,此外还提供The Complete Rust Programming Reference Guide全本在线
视频:Hacking `rustc`: Contributing to the Compiler by Esteban Kuber[37] 很多人对编译器有这样的看法:它们是靠魔法和精灵尘运行的黑盒子。而且,你要参与其中,你需要同时在多个领域有不同寻常的技术能力。 有这样一种想法:只有优秀程序员才能玩转编译器。Esteban 今天在这里就是活生生的证明,这绝对是根本性的错...
Ownership and borrowing, lifetimes, generics, traits, and trait objects to communicate your program’s constraints to the compiler Smart pointers and multithreading, and how ownership interacts with them to enable fearless concurrency How to use Cargo, Rust’s built-in package manager, to build, do...