Rust Unlinked: Rustc, Symbols, and Static Libraries | Shriram Balaji | Conf42 Rustlang 2024

Conference: Conf42 Rustlang 2024

Year: 2024

Read the abstract ➤ https://www.conf42.com/Rustlang_2024_Shriram_Balaji_unlinked_rustc_symbols Other sessions at this event ➤ https://www.conf42.com/rustlang2024 Support our mission ➤ https://www.conf42.com/support Join Discord ➤ https://discord.gg/mvHyZzRGaQ Chapters 0:00 intro 0:26 preamble 1:59 understanding linking in rust 4:48 compilation phases in rust 7:05 lexing, parsing, and code analysis 9:56 intermediate representations and optimizations 14:47 llvm and code generation 18:00 query-based compilation model 22:31 introduction to object files 22:57 introduction to object code 23:19 experimenting with rust 23:37 understanding the code example 24:01 exploring symbol mangling 26:25 compiling and linking object files 27:46 using nm utility for symbol table 30:45 examining elf file format 33:19 manual linking with ld linker 34:12 handling linking errors 35:55 using static libraries in rust 39:47 generating llvm ir 41:30 conclusion and references