~/talk

Just enough Assembly for Compiler Explorer

Talkat NDC TechTown 2019 · 2019-09-02..09-05· [security]
slides:none on file

Covers concrete x86_64 details you can use on Compiler Explorer: the System V AMD64 calling convention puts integer args in RDI/RSI, return values in RAX/EAX, and functions preserve RB P while reserving stack space by subtracting from RSP. Shows exact instructions used — mov, add, lea, push/pop, cmp/test and conditional jumps — walks through a sum and a times2 example compiled with GCC 9.1 and -O1 demonstrating inlining and leaving out needless moves. Advises making a single-file reproduction for experimentation.

AI-written summary · about

  1. 0:00Introduction to assembly
  2. 3:02Understanding registers
  3. 6:17Basic instructions
  4. 9:16Memory and the stack
  5. 12:28Memory addressing
  6. 15:32Data types and sizes
  7. 18:43Arrays and addressing
  8. 23:11Control flow
  9. 27:25Loops in assembly
  10. 30:06Function calling convention
  11. 36:42Function calls and scope
  12. 41:46Compiler optimizations
  13. 49:25Best practices for analysis
~/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.