80 matching pages, found in 92 ms
Ask StyxWritten on your GPU machine; takes a few seconds the first time.
-
rustc-dev-guide.rust-lang.orghttps://rustc-dev-guide.rust-lang.org › llvm-coverage-instrumentationLLVM source-based code coverage - Rust Compiler Development Guide
More about rustc-dev-guide.rust-lang.org
… Compiler Development Guide LLVM source-based code coverage rustc supports detailed source-based code and test coverage analysis with a command line option ( -C instrument-coverage ) that instruments Rust libraries and binaries …
-
rustc-dev-guide.rust-lang.orghttps://rustc-dev-guide.rust-lang.org › compiler-srcThe compiler source code - Rust Compiler Development Guide
More about rustc-dev-guide.rust-lang.org
… overview of the compiler source Now that we have seen what the compiler does , let’s take a look at the structure of the rust-lang/rust repository, where the rustc source code …
-
rustc-dev-guide.rust-lang.orghttps://rustc-dev-guide.rust-lang.org › appendix › code-indexAppendix C: Code Index - Rust Compiler Development Guide
More about rustc-dev-guide.rust-lang.org
… AST nodes to their source code for a single source file. Was previously called FileMap The parser compiler/rustc_span/src/lib.rs SourceMap struct Maps AST nodes to their source code. It …
-
rustc-dev-guide.rust-lang.orghttps://rustc-dev-guide.rust-lang.org › backend › codegenCode generation - Rust Compiler Development Guide
More about rustc-dev-guide.rust-lang.org
… rustc uses LLVM for code generation, but there is also support for Cranelift and GCC . The key is that rustc doesn’t implement codegen itself. It’s worth noting, though, that in the Rust …
-
rustc-dev-guide.rust-lang.orghttps://rustc-dev-guide.rust-lang.org › llm-guidance › writingWriting code with LLMs - Rust Compiler Development Guide
More about rustc-dev-guide.rust-lang.org
… the LLM as a source of truth. Write maintainable code Treat generated code as a draft , not a final product. Follow our correctness and maintainability conventions . Avoid unnecessary abstractions and compatibility layers …
-
rustc-dev-guide.rust-lang.orghttps://rustc-dev-guide.rust-lang.org › part-3-introPrologue - Rust Compiler Development Guide
More about rustc-dev-guide.rust-lang.org
… Rust Compiler Development Guide Source Code Representation This part describes the process of taking raw source code from the user and transforming it into various forms that the compiler can work with …
-
rustc-dev-guide.rust-lang.orghttps://rustc-dev-guide.rust-lang.org › licensesLicenses - Rust Compiler Development Guide
More about rustc-dev-guide.rust-lang.org
… ported, or adapted the code from some other source. There is a comment in the code pointing to a webpage or describing where the algorithm was taken from. The algorithm or code …
-
rustc-dev-guide.rust-lang.orghttps://rustc-dev-guide.rust-lang.org › syntax-introSyntax and the AST - Rust Compiler Development Guide
More about rustc-dev-guide.rust-lang.org
… AST Working directly with source code is very inconvenient and error-prone. Thus, before we do anything else, we convert raw source code into an Abstract Syntax Tree (AST) . It turns out …
-
rustc-dev-guide.rust-lang.orghttps://rustc-dev-guide.rust-lang.org › part-5-introPrologue - Rust Compiler Development Guide
More about rustc-dev-guide.rust-lang.org
… generated any executable machine code at all! With this chapter, all of that changes. So far, we’ve shown how the compiler can take raw source code in text format and transform it …
-
rustc-dev-guide.rust-lang.orghttps://rustc-dev-guide.rust-lang.org › about-this-guideAbout this guide - Rust Compiler Development Guide
More about rustc-dev-guide.rust-lang.org
… of the compile process. Source code representation : Describes the process of taking raw source code from the user and transforming it into various forms that the compiler can work with easily. Supporting …
Search for “source code site:rustc-dev-guide.rust-lang.org” on Google, or add !ddg, !w and other shortcuts to any search.