~/talk

C++ Exceptions

Talkat ACCU 2025 · 2025-04-01..04-04· [c-and-cpp]
links:none on file
slides:none on file

Claim: using C++ exceptions can shrink large embedded binaries versus pervasive result-return checking. Evidence: recompiled ARM GCC with exceptions enabled, override terminate handler and replace __cxa_allocate_exception to avoid iostream bloat and heap, disable RTTI where safe, and link Picolib C; microbench RNG experiments show a crossover near ~550 checks and an MP3 project drops from ~60KB to ~49KB. Built a working ARM exception runtime and iteratively reduced its cost (now ~90+% smaller than GCC’s default).

AI-written summary · about

  1. 0:00Introduction
  2. 5:19C++ exceptions in embedded
  3. 17:14ARM exception barriers
  4. 33:14ARM exception handling
  5. 1:06:41Exceptions vs result types
  6. 1:19:42Exceptions as code compression
~/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.