Yes, the binary do get quite big as soon as the linker has to start
add in the C++ libraries. This is a big bump, but then you will be able to
add a lot of code again with quite small increase in the size of the
binary.
But for doing a tiny utility application, it seems like a waste to get so
large binaries. I normally use my own implementations of most function
when creating smaller applications.
/pwm
On Sun, 7 Feb 2010, Philip Bennefall wrote:
> Hi Chris,
>
> Sounds logical, though no less annoying. Grins. Thank you for the
> clarification.
>
> Kind regards,
>
> Philip Bennefall
> ----- Original Message -----
> From: "Chris Miller" <lor...@gm...>
> To: "Philip Bennefall" <ph...@bl...>
> Cc: <dev...@li...>
> Sent: Sunday, February 07, 2010 8:21 AM
> Subject: Re: [Dev-C++] Executable size with stl
>
>
> > On Sat, Feb 6, 2010 at 4:17 PM, Philip Bennefall <ph...@bl...>
> > wrote:
> >> Hi all,
> >>
> >> I noticed that when using MinGw and the stl (e.g. iostream, string,
> >> vector
> >> etc) the executable gets ridiculously large - sometimes over 1 mb! My
> >> project settings are set to the "Optimize More" option, no debugging or
> >> profiling information is generated, and the executable is set to be
> >> stripped. Yet, we get these huge files and it simply does not seem
> >> logical.
> >> Is there any way to reduce this? Perhaps if I could find an alternate
> >> implementation of the stl somewhere?
> >
> > IIRC, this is because it has to include the GNU STL implementation
> > into the binary, otherwise you'd need to have the applicable DLL's
> > installed on the client machine as well as your application
> > executable.
> >
> > I could be wrong, I haven't used DevC++ in a while, but that's what I
> > remember.
> >
> > HTH.
> >
> > --
> > Registered Linux Addict #431495
> > For Faith and Family! | John 3:16!
> > http://www.fsdev.net/
>
>
> --------------------------------------------------------------------------------
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.432 / Virus Database: 271.1.1/2662 - Release Date: 02/01/10
> 12:37:00
>
>
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|