-
.exe size with MinGW
G'day all,
All day today I've been trying to figure out how to lower the size of the executables that MinGW compile. I search some forums and stuff and learnt about compiler commands.
So i compiled a hello world program at without any commands and i get an .exe of 463 KB =o.
I then used a -s --strip-all command and the .exe when to 260 KB.
I don't know much about compilers and i was wondering if someone could tell me what commands i should use. My mate said i should be able to get the size of the .exe to around 50 KB???
I'm using Dev-Cpp Beta5 with MinGW.
Cheers in advance.
-
Look in the help files in the IDE. It will give you the answer you need. In paticular, click on FAQ, one of the questions relates to lowering the executuon size when a program is run
-
I'm not to sure what most of the commands do. I was hoping that someone could tell me what commands i should use to get minimum .exe size.
-
> My mate said i should be able to get the size of the .exe to around 50 KB???
So get him to prove he can do it.
You could try linking with shared libraries, which are loaded with the executable when you run it (thus not really saving a lot of space), but the headline news looks good.