~/talk

Code Size Compiler Optimizations and Techniques for Embedded Systems

Talkat CppCon 2021 · on Thursday, 2021-10-28· at 14:00· Online E, online· [web-performance]
links:none on file
slides:none on file

Overview of concrete techniques and measured effects: compilers’ code‑size flags (-Os, -Oz), implemented in LLVM optimizations like hot cold splitting and function-entry instrumentation that collect field data, and link-time techniques (thin LTO, identical code folding, machine outliner). Tools used include size, strings and Bloaty and a libstdc++ case where strings reveal dead debug code. Claims include micro reductions from GVNHoist/identical folding (<1%) and larger wins from outlining (reported ~10%), plus practical advice on template instantiation, data‑structure choices, stripping and instrumentation to find unused functions.

AI-written summary · about

  1. 0:00Introduction
  2. 0:28Why Code Size Matters
  3. 2:09Outline
  4. 4:16Tools
  5. 5:08String Tool
  6. 6:20Popular Optimizations
  7. 16:17llvm Flags
  8. 21:03C Library Optimizations
  9. 23:45Code Refactoring
  10. 30:40Attributes
  11. 33:55Data Structures Example
  12. 38:52C Library Optimization
  13. 40:13Code Size Reduction Tools
  14. 42:00Compiler Instrumentation Techniques
  15. 44:13Compiler Optimizations
  16. 44:31No Accept with Conditional
  17. 46:25Optimizations
  18. 49:37Loop Medium Recognition
  19. 50:48Resources
  20. 51:25Questions
~/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.