Re:Misra C++:2023 Published
by mgaunard on Sunday December 17, 2023 @05:09PM
(#38676976)
Exceptions don't generate more space outside of code where you use try/catch, which is generally viewed as an anti-pattern.
[ Parent
| on HN ]
I have personally removed exceptions (to be fair, it was only few) from an embedded application and introduced the -fno-exceptions flag. The binary size was reduced by ~20%, which can be important if you are doing SW updates to space and have a link budget... Also, the reduced code size is more cache friendly on a system with rather limited cache memories.