Size of a library and the executable

前端 未结 7 886
半阙折子戏
半阙折子戏 2021-02-14 12:14

I have a static library *.lib created using MSVC on windows. The size of library is say 70KB. Then I have an application which links this library. But now the size of the final

7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-14 12:39

    Additionally to the current answers, the linker is allowed to remove function definitions if they have identical object code - this is intended to help reduce the bloating effects of templated code.

提交回复
热议问题