4 ms·
Exceptions don't generate more space outside of code where you use try/catch, which is generally viewed as an anti-pattern.
by mgaunard 3y ago
Exceptions don't generate more space outside of code where you use try/catch, which is generally viewed as an anti-pattern.
- vodou 3y agoI 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.
- mgaunard 3y agoWell the problem was most likely with the code then, not the language feature -- because the changes are quite localized to throw sites and catch sites, not throughout the code.