Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: TyDX on June 05, 2013, 02:29:37 am

Title: exe Size
Post by: TyDX on June 05, 2013, 02:29:37 am
Hi guys.

I've compiled a very simple C++ program. 35 lines of code in both Code::Blocks and VS 2010.

The exe generated by Visual Studio is 85Kb and the one generated by CB is 945Kb.

Both IDEs using default settings.

Anything I need to set in Code::Blocks to reduce the exe size?

Thanks in advance.

Ty.
Title: Re: exe Size
Post by: stahta01 on June 05, 2013, 02:48:20 am
The setting depends on the Compiler used.

Read the CB FAQ is NOT
http://wiki.codeblocks.org/index.php?title=FAQ-General#Q:_What_Code::Blocks_is_not.3F (http://wiki.codeblocks.org/index.php?title=FAQ-General#Q:_What_Code::Blocks_is_not.3F)

Tim S.
Title: Re: exe Size
Post by: TyDX on June 05, 2013, 04:57:39 am
So I need to find out how to improve this in MinGW?
Title: Re: exe Size
Post by: TyDX on June 05, 2013, 05:03:59 am
Found why this is happening:

http://stackoverflow.com/questions/5001184/exe-build-by-code-blocks-is-almost-57-times-larger-than-the-same-code-build-by-v (http://stackoverflow.com/questions/5001184/exe-build-by-code-blocks-is-almost-57-times-larger-than-the-same-code-build-by-v)

Thx.