~/talk

Code Size Compiler Optimizations and Techniques for Embedded Systems

links:none on file
slides:none on file

Describes concrete compiler flags and passes that actually cut binary size: use -Os or the more aggressive -Oz, disable exceptions/RTTI and loop unrolling, reduce inlining thresholds, or try fno-function-sections and fno-jump-tables; enable link-time optimizations (full LTO or thin LTO) and identical-code-folding/merge-function to dedupe. Reports example footprints (std::map ~14 KB vs unordered_map ~15 KB; vector ~14.3 KB vs list ~13 KB) and a tiny instrumentation prototype that costs ~5 bytes per function to find dead code.

AI-written summary · about

  1. 0:00Introduction
  2. 1:12Classification
  3. 2:01Compiler Optimization
  4. 7:41GCC Compiler Optimizations
  5. 21:08C Optimizations
  6. 23:04Source Code Optimizations
  7. 24:29Cheaper Data Structures
  8. 26:00Map vs List vs Vector
  9. 27:43Code Source Code
  10. 31:14Shared Libraries
  11. 32:06Binary Compression
  12. 33:02References
~/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.