Igor R.
2010-01-06 20:03:16 UTC
Hello,
I noticed that when I link my application with static libraries built
with MinGW/gcc (like ffmpeg), the apllication size is increased by the
size of these libraries - even though I don't use most of their code.
To verify this guess, I reconfingured and rebuilt the libs, excluding
a lot of unused features - the libs became smaller, and the
application size decreased drastically.
I link in MSVC9.0 in release mode, with /OPT:REF /OPT:ICF.
So is there a way to make the linker drop unused code in this case?
I noticed that when I link my application with static libraries built
with MinGW/gcc (like ffmpeg), the apllication size is increased by the
size of these libraries - even though I don't use most of their code.
To verify this guess, I reconfingured and rebuilt the libs, excluding
a lot of unused features - the libs became smaller, and the
application size decreased drastically.
I link in MSVC9.0 in release mode, with /OPT:REF /OPT:ICF.
So is there a way to make the linker drop unused code in this case?