0:00 / 0:00
Rust Before Main - Ryan Levick - Rust Linz, July 2022
Rust Programming Language
70K subscribers • 42 videos on Hallway • Conference channel
- Recommended by 1 person: 1 on Lobsters.
- Presented by Ryan Levick, Rust engineer at Microsoft
- Linked in the descriptionjohnthagen/min-sized-rust
Advanced. Deep dive for people who know the field.
47K views4 years ago1 recommendation
Systems programmingProgramming languagesRustOperating systemsCompilers and interpreters
Ryan Levick explores the execution steps, runtime setup, and OS interactions that occur before a Rust program's main function runs.
When you run a Rust program, you may be tempted to think that the first code to execute is the main function. However, this is far from the case. In this talk, we'll explore what happens before the main function runs. By the end, you'll have a deeper understanding of what happens before the bits that rustc compiles your program into ever run. Ryan has been writing Rust since around version 0.10. He now focuses on Rust full time at Microsoft. When he's not doing Rust, he enjoys cooking, traveling and exploring Berlin where he lives. Resources: The Bits Between the Bits: youtube.com/watch?v=dOfucXtyEsU Making Your Own Executable Packer: fasterthanli.me/series/making-our-own-executable-packer How the heck do we get to main(): dbp-consulting.com/tutorials/debugging/linuxProgramStartup.h… Everything You Ever Wanted to Know About DLLs: youtube.com/watch?v=JPQWQfDhICA Minimizing Rust Binary Size: github.com/johnthagen/min-sized-rust Rust Linz: rust-linz.at Speak at Rust Linz: sessionize.com/rust-linz Twitter: twitter.com/rustlinz