Hacker News new | ask | show | jobs
by flohofwoe 680 days ago
I'm pretty sure I could see a roughly 10% binary size decrease in my C++ projcts just by setting -fno-exceptions, and that was for C++ code that didn't use exceptions in the first place, so there must be more to it then just forbidding throw. Last time I tinkered with this stuff was around 2017 though.
1 comments

You do not need unwind tables for noexcept functions, that can be a significant space saving.
sure but the unwind flags don’t prevent optimizations like exceptions