Menu

Why my program is so big?

fendy
2013-10-09
2013-10-16
  • fendy

    fendy - 2013-10-09

    Hello guys, I am pretty new to orwell-devcpp, before using this version I used bloodshed-devcpp. MY problem is when I included <iostream> header. My *.exe file was too big. It is around 6MB with a simple program. I don't know whether it's a bug or my program mistakes. I have tested with other program which previously worked and it happened the same thing. The file just too big.
    I have tried 32 bit or 64 bit version of orwell-devcpp

    Note: I am using x64 Windows 7 Ultimate, and I have tried clean uninstall followed by re-install. And I am pretty new to forum too, so sorry if I violate any rule. Thanks:)

     

    Last edit: fendy 2013-10-09
  • orwelldevcpp

    orwelldevcpp - 2013-10-10

    You can strip unused code from the executable using the -s flag. You can find it in the Tools >> Compiler Options >> Settings >> Linker tab.

    The only downside to always using this option is that it also removes debugging information.

     
  • fendy

    fendy - 2013-10-10

    oh so that's the problem thanks for fast reply :)

     
    • LEOcab

      LEOcab - 2013-10-16

      You can also use UPX for your finished product to make your executable even smaller:
      http://upx.sourceforge.net/

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.