3 ms·
Even when linked statically, my "Hello World" program is only 10,332 bytes larger than something which prints "Hello World" and then throws an integer. Buildin
by mattkrause 10y ago
Even when linked statically, my "Hello World" program is only 10,332 bytes larger than something which prints "Hello World" and then throws an integer.
Building the no exceptions version with -fno-exceptions doesn't change the size of the exception-free version either.
(g++ 4.8.5 with -Os)
- WalterBright 10y agoAll functions get compiled with exception handling unwind data, so you're going to get that pulled in whether the executable throws or not. In order to not get that, you'll likely have to rebuild the entire runtime library with EH turned off.