I am working on a project that is getting really large and I need to have the exe uploaded to someone every time a new build is out, and my connection is by phone modem.
I want to compile the smallest possible exe for an application whose purpose is to run the code: MessageBox(0, "Hello", 0, MB_OK);
I am using Visual Studio 2010. My attempts so far:
Version 0, size and switches:
7kB (release)
Used: \O1
Version 1, size and switches:
3kB (release)
Used: \O1, Off buffer security check, Ignore default library linkage.
Can this be made even smaller than 3kB? What compiler flags influence the size of the executable?