I have a project that’s not really big. With Visual Studio’s C++ compiler the executable is 100+KB. But with mingw GCC it goes up to 500+ KB. Same thing happens on Linux. That’s for the release build. For debug build GCC produces 1.4MB while VS’s C++ compiler only produces 400+KB. What’s the reason that causes such a huge discrepancy? Does it have anything to do with static/dynamic linking? What can I do to reduce the executable size produced by GCC?
Share
See this page on how to shrink GCC output size: http://wiki.wxwidgets.org/Reducing_Executable_Size