Skip to content
0:00 / 0:00

#elf#rust#binarysize

Before Main: How Executables Work on Linux

Ryan Levick

14K subscribers • 3 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • A classic. People kept recommending it from 2021 to 2024.
  • Presented by Ryan Levick
  • Linked in the descriptionjohnthagen/min-sized-rust

Intermediate. Assumes working knowledge.

14K views6 years ago2 recommendations

Systems programmingOperating systemsLinuxPerformance and optimization

Ryan Levick and fasterthanlime explore ELF binaries, how execution works on Linux, and how to reduce Rust binary sizes.

Ever wonder what an executable binary actually is? Join me and special guest @fasterthanlime as we explore ELF binaries and how execution works on Linux. Links: fasterthanlime's blog (fasterthanli.me) Resource's on Rust executable size (github.com/johnthagen/min-sized-rust) My Twitch Channel (twitch.tv/ryanlevick) My Twitter (twitter.com/ryan_levick)

Why it's here

2 people recommend this

What people say. Recommended for understanding how Linux executables work and how to reduce Rust binary size.

u/eXoRainbowin r/rust • Recommends

On “Why are all the binaries I make with cargo build --release a minimum 3.3 Mb? Isn't that a bit big?”

Also related to this: link to this video - Before Main: How Executables Work on Linux with Ryan Levick and the author of the article you linked. I think the first 20 or 30 minutes is about making the program smaller, based on this article.

u/svave9in r/rust • Recommends

On “Why are rust binaries so large?”

Do watch this from Ryan & Amos. This gives insights into what is happening and how the binary size can be reduced. Before Main: How Executables Work on Linux (youtube.com)