~/talk

“Enough x86 Assembly to Be Dangerous”

Talkat CppCon 2017 · 2017-09-24..09-29· [c-and-cpp, linux-and-operating-systems]
links:none on file
slides:none on file

Introduces practical x86 by showing Compiler Explorer (Godbolt) and disassemblers (objdump, gdb, Visual Studio) and walks through registers, virtual address space and the stack frame prolog/epilog for a simple add function generated with g++. Demonstrates two operator+ implementations and shows the lower-level result: one version generates extra copy and destructor calls (no NRVO) while the other fits fewer instructions into registers and returns in EAX. Emphasizes assembler quirks (MOV is copy, jump encodings, microcode updates), alignment pitfalls and that measuring trumps anecdote.

AI-written summary · about

  1. 0:00Introduction
  2. 0:43Why learn x86 assembly
  3. 10:26Basic x86 architecture
  4. 17:39Reading assembly code
  5. 23:20C++ and assembly comparison
  6. 29:49Q&A
~/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.