Just Enough Assembly for Compiler Explorer
summary
Teaches the concrete bits needed to read Compiler Explorer output: x86_64 calling convention, how the first args live in rdi/rsi and returns in rax, how stack frames use push/pop and rbp/rsp, and why little-endian byte order matters. Demonstrates live examples on Compiler Explorer (godbolt.org), steps through push/pop, lea for arithmetic (used to implement multiply‑by‑two), showing when code inlines or collapses at -O2. Examples are reproduced and verified to behave as shown.
AI-written summary · about
chapters (14)
- 0:00Intro
- 0:35Compiler Explorer
- 3:58Questions
- 8:18Memory
- 13:44Address Memory
- 18:37Register Sizes
- 20:49Register Types
- 21:14Ins
- 22:41Arrays
- 37:39Loops
- 40:19C Code
- 42:09Calling Convention
- 47:49Lua
- 57:09Optimization
related talks
01h 00mJust Enough Assembly for Compiler Explorer
01h 16m“What Has My Compiler Done for Me Lately? Unbolting the Compiler's Lid”
01h 00mFrom Program to Process - What Happens After the Compiler
10mA quick view into a compiler
46mWhat C and C++ can do and when do you need Assembly?
50mWhat’s really going on under the hood? The hidden life of method calls.
21mGetting the Most Bang out of your Buck with Compilers on POWER
01h 04mCompiler Bugs And Bug Compilers
