~/talk

A Few Effective gcc/clang Optimizations for Embedded Systems

slides:none on file

Practical, measurable gcc/clang tactics to shrink and speed embedded Linux binaries: generate and inspect linker map files and binaries with objdump, size, nm, strip, prefer -O2, -Os, -Og based on a measured baseline, enable stack-protector/fortify for security-aware tradeoffs, use profile-guided optimization, favor fixed-width types like uint32_t/uintptr_t to match the CPU word size, avoid globals in hot loops, mark immutable data const, use attributes/pragmas to aid vectorization, exploit tail-call elimination and inline heuristics, and treat inline asm as a portability last resort.

AI-written summary · about

  1. 0:00Introduction
  2. 0:55Agenda
  3. 2:03Tools Know Your Compiler
  4. 3:22Memory Layout
  5. 5:04Map Files
  6. 8:24Optimization Levels
  7. 11:49Meta Optimization Options
  8. 12:25Stack Protector Options
  9. 14:27Compiler Support
  10. 15:16Processor World Size
  11. 16:57Type Systems
  12. 18:17Const
  13. 19:57Function Parameters
  14. 24:06Loops
  15. 26:11Attributes
  16. 28:02Baselines
  17. 30:10Portability
  18. 32:20ternary operator
  19. 33:23stack size
  20. 35:16ncall optimization
  21. 37:19recursion optimization
  22. 38:10summary
~/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.