[Ohrrpgce] SVN: teeemcee/10025 scons: Reduce game/custom.exe size by 1MB by compiling with --gc-section

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Sun Feb 18 23:58:20 PST 2018


teeemcee
2018-02-18 23:58:20 -0800 (Sun, 18 Feb 2018)
452
scons: Reduce game/custom.exe size by 1MB by compiling with --gc-sections

Measured on a gengcc=1 debug=0 build with MXE (mingw-w64).
Mainly, this cuts out most of libstdc++, which we statically link. So the effect
isn't dramatic on other platforms.

I now measure game.exe as 3MB and custom.exe as 3.5MB. Of that, 600KB is
symbol information, unfortunately a large amount of that is from libstdc++,
because ld doesn't delete symbols for GC'd sections.
---
U   wip/SConscript


More information about the Ohrrpgce mailing list