Dev-Cpp icon indicating copy to clipboard operation
Dev-Cpp copied to clipboard

Huge Files

Open mosftguides opened this issue 3 years ago • 1 comments

If I compile a hello world program with Dev-C++, the exe file is very heavy. A hello world program in Release mode had 3133720 Bytes in size, a hello world program in Debug mode had 3221550 in size. For comparison, I also compiled the program with my MinGW g++ and got a file which had 44094 Bytes in size. Code: #include int main(){ std::cout << "Hello World!"; } Then, I used printf instead of cout and didn't include iostream any more, and the size went down to 361319 Bytes. #include<stdio.h> int main(){ printf("Hello World!"); }

mosftguides avatar May 06 '22 22:05 mosftguides

I have the same issue. I'm wondering if we can change some of the complier flags to produce a smaller size binaries

HA4ever37 avatar May 26 '22 20:05 HA4ever37