Title: smaller exe's
Description: should be able to get them smaller...
ih8censorship - June 24, 2003 01:20 AM (GMT)
how big are everyones average compiled files? i made a hello world one that was like 400k and the other couple i made were like 1.20mb and the source for them was about 1.25k. is this normal or am i doing something wrong?
StarReaver2 - June 24, 2003 02:18 AM (GMT)
My hello world file was only 3 KB, if you're talkin about a console app. You use dev C++ and it gets that big? It sounds more like a game maker file to me :P .... post the source code
Dragon - June 24, 2003 04:23 AM (GMT)
Don't bother posting the source code. You aren't doing anything wrong. The Dev-C++ IDE uses the Mingw compiler, and its compiled executables are bigger than ones compiled with other ones. However, make sure you are not compiling with debugging information.
Shadow of the Moon - June 24, 2003 01:38 PM (GMT)
I don't know, 1.2 megs is way to big for a console app. exactly what is it?
Dragon - June 24, 2003 09:20 PM (GMT)
It could be because of the headers used. Some headers are quite large. For example, my win32 applications are MUCH smaller than my console applications. I think it's because of #include <iostream>, but it could be another header.
StarReaver2 - June 24, 2003 09:22 PM (GMT)
my iostream takes up this much memory*Puts his fingers really close together*. I dunno whats different bout it :P
Dragon - June 24, 2003 09:26 PM (GMT)
Like I said, it could be a different header.
Shadow of the Moon - June 24, 2003 09:37 PM (GMT)
It could be stdlib.h, that's pretty big
Dragon - June 25, 2003 11:19 PM (GMT)
| QUOTE |
| i made a hello world one that was like 400k |
That's the average size of a small console application compiled with the Mingw compiler. win32 applications are much smaller.
Shadow of the Moon - June 26, 2003 02:43 AM (GMT)
a test program I just made was less than 100kb
Dragon - June 26, 2003 02:55 AM (GMT)
| QUOTE |
| a test program I just made was less than 100kb |
What compiler are you using?
Shadow of the Moon - June 26, 2003 02:33 PM (GMT)
Bloodshed Dev-C++ of course. :)
Dragon - June 26, 2003 03:59 PM (GMT)
Well, then, what did it do? Was it a console application or a win32 application?