~/talk

Just Enough Assembly for Compiler Explorer

Talkat CppCon 2021 · on Monday, 2021-10-25· at 12:30· Online A, online· [compilers-and-language-design]
slides:none on file

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

  1. 0:00Intro
  2. 0:35Compiler Explorer
  3. 3:58Questions
  4. 8:18Memory
  5. 13:44Address Memory
  6. 18:37Register Sizes
  7. 20:49Register Types
  8. 21:14Ins
  9. 22:41Arrays
  10. 37:39Loops
  11. 40:19C Code
  12. 42:09Calling Convention
  13. 47:49Lua
  14. 57:09Optimization
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.