~/talk

Back to Basics: Compiling and Linking

Talkat CppCon 2021 · on Thursday, 2021-10-28· at 12:30· Online E, online· [compilers-and-language-design]
name:Ben Saks
links:none on file
slides:none on file

Explains exactly how preprocessing, compilation, instantiation and linking produce object files and how inline and constexpr functions become allowed multiple definitions, why explicit template specializations belong in source files, and how explicit template instantiation forces a single emitted definition. Shows using a linker script to place code and data in RAM or flash, walks a concrete example program through each build stage, and demonstrates the instantiation+linker approach reduces rebuilds and yields the expected memory layout.

AI-written summary · about

  1. 0:00Intro
  2. 0:36Compiling and Linking
  3. 6:44Declarations and definitions
  4. 9:44Function declarations
  5. 14:44The build process
  6. 22:04Object files
  7. 29:01One definition rule
  8. 41:53Templates
  9. 45:45Functions and Classes
  10. 46:54Template Definition
  11. 49:34Memory Map
  12. 51:13Linkers
  13. 56:08Explicit Instantiation
  14. 57:53Examples
~/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.