C++ Exceptions for Smaller Firmware - Khalil Estell - CppCon 2024
What it is
Khalil Estell's CppCon 2024 talk argues C++ exceptions can reduce binary size in firmware. He digs into how exceptions work and how to shrink their code footprint on embedded platforms.
Why Hacker News recommends it
Pointed to as the in-depth talk on exception mechanics and code size for embedded C++.
- 5 people recommended it
- 4 different months
- 1 strong recommendations
- first 2025, last 2026
What HN commenters said
“the whole presentation was excellent in my opinion”
Deep dive into exception mechanics and code size
inetknght, 2025-09 · Strong recommendation · in “How is Ultrassembler so fast?”
“Khalil Estell has some great work on that.”
Low-level technical look at how exceptions really work
bluGill, 2025-02 · Recommendation · in “Software development topics I've changed my mind on”
“A specific presentation I'd point to is Khalil Estell's presentation on reducing exception code size on embedded platforms”
Reducing exception code size on embedded platforms
mpyne, 2025-09 · Recommendation · in “How is Ultrassembler so fast?”
“There was an interesting talk about C++ exceptions in smaller firmware at CppCon last year”
Exception overhead likely less than manual error handling
neonz80, 2025-11 · Recommendation · in “Async/Await is finally back in Zig”
“he mentions that a lot of the bloat in exception handling is including printf”
Explains bloat in exception handling for bare metal
daemin, 2026-03 · Recommendation · in “Practical Guide to Bare Metal C++”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: c++, exceptions, firmware, binary size, embedded
Also recommended by the same people
documentaryInside Africa's Food Forest Mega-ProjectAndrew Millison · 3 HN recommenders · 2025–2026
talkDe-fragmenting C++: Making Exceptions and RTTI More Affordable and Usable - Herb Sutter CppCon 2019CppCon · 3 HN recommenders · 2020–2025
talkCppCon 2017: Fedor Pikus “C++ atomics, from basic to advanced. What do they really do?”CppCon · 3 HN recommenders · 2017–2025
talkCppCon 2017: Chandler Carruth “Going Nowhere Faster”CppCon · 2 HN recommenders · 2017–2026
commentaryAmazon Sells Fake Electrical FusesLouis Rossmann · 2 HN recommenders · 2024–2026
talkJared Mauch - Getting Fiber To My Town (NLNOG Live! September 2020)NLNOG · 3 HN recommenders · 2020–2025
courseThe essence of calculus3Blue1Brown · 10 HN recommenders · 2017–2025
talkCppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”CppCon · 13 HN recommenders · 2016–2024