~/talk

C++ Insights: Peek behind the curtains of your C++ compiler

Talkat CppNorth 2024 · 2024-07-21..07-24· [compilers-and-language-design]
slides:none on file

C++ Insights is a clang AST-based, open‑source tool that performs source‑to‑source transforms so the compiler’s hidden work appears as valid C++ code. It makes default parameters visible (showing three separate std::string allocations in an example), exposes padding and cache effects (a reorder shrinks a struct to 64 bytes and drops runtime from ~1.9 ms), and provides object lifetime visualization including coroutine frame rewrites and where temporaries dangle. It uses clang front end, has hand‑rolled transforms for coroutines, and runs locally via Docker.

AI-written summary · about

  1. 0:00Introduction
  2. 1:20C++ Insights overview
  3. 3:58Technical architecture
  4. 11:39Handling templates
  5. 14:35Abstract Syntax Tree
  6. 16:57Transformation types
  7. 20:32Default parameters
  8. 23:58Padding and alignment
  9. 29:16Object lifetime
  10. 36:02Advanced lifetime analysis
  11. 45:35C++ 20 aggregate initialization
  12. 49:55Reference parameters
  13. 50:52Coroutines
  14. 53:21Explicit object parameters
  15. 56:56Conclusion and Q&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.