~/talk

GCC/Clang Optimizations for Embedded Linux

slides:none on file

Describes practical compiler levers for embedded Linux with exact flags and tradeoffs including -Os vs -O3 for size versus speed and the reason -O3 inflates code (loop unrolling) and auto vectorization needs SIMD targets. Shows how to use fstack-usage, -fconserve-stack, function/data sectioning plus linker GC to shrink images, and how LTO and PGO work including instrumented PGO versus sampling Auto SDO. Advises profiling hotspots, using -march/-mtune/-mcpu carefully, and avoiding nonportable GCC extensions that clang rejects.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Clang
  3. 2:32GCC
  4. 4:40Optimization Flags
  5. 10:13Optimization Flags Output
  6. 12:24Strictaliasing
  7. 15:27Inlining
  8. 19:04Stack Optimization
  9. 22:19Size Optimization
  10. 26:38Profile Guided Optimization
  11. 27:50Profile Generate
  12. 32:14LTO
  13. 37:20AutoVectorization
  14. 42:23CPU Optimizations
  15. 46:32Builtin Functions
  16. 47:53Unsupported Extensions
  17. 51:13Summary
~/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.