Embarcadero / Dev-Cpp

A fast, portable, simple, and free C/C++ IDE
https://www.embarcadero.com/free-tools/dev-cpp
GNU General Public License v2.0
2.43k stars 266 forks source link

Huge Files #228

Open mosftguides opened 2 years ago

mosftguides commented 2 years ago

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

int main(){ printf("Hello World!"); }

HA4ever37 commented 2 years ago

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