• Welcome to Dark Bit Factory & Gravity.
 

Visual Studio 2013 Community - Settings for small exe files

Started by va!n, January 09, 2015

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

va!n

Can someone explain me, what kind of settings must be used to produce a small win32 executeable?
I changed some settings and getting a small exe file - as long as i dont use floats. About 60 kb
will be added to the executeable when using floats :-( How to use floats without adding 60 kb?

Is there any way to write all the compiler settings in the top of the C/C++ source, without changing
values in the settings window?

Would be nice to know the settings for a Visual Studio 2013 Community - Win32 Form App.

- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Hotshot

Hello Vain,

What files size are you aiming for? 30KB or 6KB?

Have you try UPX http://upx.sourceforge.net/#downloadupx  that will cut your files size in half?

va!n

@Hotshot:
I dont want shrink the exesize by packing the file. When using any float value in my source, the exe grows about 60 kb. So the question is, how to use floats without adding extra 60 kb to the created executeable?
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

hellfire

Quote from: va!n on January 11, 2015
When using any float value in my source, the exe grows about 60 kb.
So you're probably linking the static runtime lib?
Challenge Trophies Won:


CLASSmate

It is very nice you want to expand your knowledge about IDE and compiler.
But maybe you should also explore other options.
Then those of Microsoft tech.

Canopy

funnily I created this post on pouet within a few weeks of this one being made.. maybe more hints there?

http://www.pouet.net/topic.php?which=10622