youtube image
From YouTube: Rust Before Main - Ryan Levick - Rust Linz, July 2022

Description

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: https://www.youtube.com/watch?v=dOfucXtyEsU
Making Your Own Executable Packer: https://fasterthanli.me/series/making-our-own-executable-packer
How the heck do we get to main(): http://dbp-consulting.com/tutorials/debugging/linuxProgramStartup.html
Everything You Ever Wanted to Know About DLLs: https://www.youtube.com/watch?v=JPQWQfDhICA
Minimizing Rust Binary Size: https://github.com/johnthagen/min-sized-rust

Rust Linz: https://rust-linz.at
Speak at Rust Linz: https://sessionize.com/rust-linz
Twitter: https://twitter.com/rustlinz