arthurits / SplashScreen

A stand-alone splash screen written in MASM x86, MASM x64, and C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reduce C++ output executable

arthurits opened this issue · comments

Problem:
The release output executable from the C++ project is around 225 KB!

Tasks:
Tweak the compiler and linker arguments in order to reduce the file size.

This was solved in commit 6a9e9ea.

The reason being the linking of the C run-time library in Configuration PropertiesC/C++Code GenerationRuntime Library. When the flag /MT is set, the output executable includes the run-time, whereas the flag /MD does not include the run-time in the executable, but relies on the user having installed the MSVCRversionnumber.dll.

More detailed information can be found in Microsoft's documentation.