~/talk

Back to Basics: The Structure of a Program

Talkat CppCon 2020 · 2020-09-14..09-18· at 12:00· Back to Basics, online· [rust]
links:none on file
slides:none on file

Covers exactly what the compiler and linker do: conversion of each .cpp into one object file, phases 1–9 of translation, and how macros/includes produce huge translation units (main.i becomes 41,625 lines with gcc 10.2 on Ubuntu 18.04). Explains the Itanium ABI vs MS ABI, why name mangling encodes types, the one-definition rule and when inline permits multiple definitions, and which linker tools (ld, gold, lld, link.exe) fail or succeed at resolving symbols.

AI-written summary · about

  1. 0:00Start
  2. 1:18Goals
  3. 2:52Building and Running a C++ Program
  4. 3:58Input Files
  5. 6:44C++ Programming Ecosystem - Building Executables
  6. 9:56C++ Programming Ecosystem - Building Dynamic Libraries
  7. 10:32C++ Programming Ecosystem - Building Static Libraries
  8. 11:47How do We Represent C++ Programs?
  9. 13:30Building a C++ Executable
  10. 18:05Phases of Translation (3)
  11. 28:03Declarations and Definitions
  12. 37:47Internal Linkage
  13. 52:22Name Mangling
  14. 55:40Linking Linking is the final stage of compilation, performed by the linker
  15. 56:31Loading and Running . The operating system loader validates the executable Image file
~/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.