Understand compilation, memory, and the CPU
Trace how high-level code compiles into assembly instructions and how the CPU manages the stack, registers, and memory.
What you’ll learn
- CPU registers, instruction sets, and memory addressing (x86-64 / ARM)
- The call stack, stack frames, and calling conventions (System V AMD64)
- The compilation pipeline: preprocessing, compilation, assembly, and linking
- Binary file structures: ELF (Linux) and PE (Windows) headers and sections
Learn with these resources
x86-64 Architecture & Assembly Guide ↗
A concise reference for registers, memory operands, and the System V AMD64 calling convention.
Compiler Explorer ↗
Compare C source code directly against interactive assembly output across different compilers and optimization levels.
External resources remain with their creators; access and availability may change. Resource links reviewed 2026-10-12.
Put it into practice
Write a minimal C program with two functions, a conditional branch, and a loop. Compile it with debug symbols and without optimization (gcc -O0 -g). Use Compiler Explorer or objdump -d to inspect the generated assembly. Identify the function prologue, epilogue, stack frame adjustments, and how function arguments are passed in registers.
Keep this as evidenceAn annotated disassembly listing of your sample program with a diagram showing stack frame growth during a function call.
Before you move on
Check these after doing the work and explaining it in your own words.
Record what you tried, what you learned, and what to revisit. Keep credentials and private data out of these notes.
0 / 6000 characters · Stored in this browser
Practice explaining your decisions
Related questions open in the question bank. Their review progress is tracked separately.