Dark Bit Factory & Gravity
PROGRAMMING => C / C++ /C# => Topic started by: va!n on January 09, 2015
-
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.
-
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?
-
@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?
-
When using any float value in my source, the exe grows about 60 kb.
So you're probably linking the static runtime lib?
-
As this hasn't been posted yet: http://www.unknowncheats.me/wiki/C%2B%2B:Shrinking_C%2B%2B_Executables (http://www.unknowncheats.me/wiki/C%2B%2B:Shrinking_C%2B%2B_Executables)
Here's a good reference.
-
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.
-
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