Hey Jim,

2009/3/10 Jim Koornneef <[email protected]>:
> So, I went back to some of the samples with similar sections/control
> use/functionality to play around there.  I found the g++ (Ubuntu) generated
> object file AttachmentEdit.o for AttachmentEdit.cpp in composer is 940K!!

On a 64bit ubuntu system, with a Debug build, and gcc 4.2.4, I get for
AttachmentEdit.o:

- 1480496 bytes before stripping
- 265520 bytes after stripping

With a release build, I get for AttachmentEdit.o:

- 219208 bytes before stripping
- 100096 bytes after stripping

> I can't figure out what compiler options I need to make this puppy smaller
> and I don't see anything to cause this type of bloat.  Debug is in there,
> but the stripped application is still huge.

When debug is in there, I would expect the application to be huge ?

> I've got a few other .o files that are also huge, it may be that I'm doing
> the same thing in those files too.  I figure there is something I'm doing
> that's causing reams of 'template' code, or inlines to be generated, or
> unrolling C macros?  I thought maybe the WString::tr, but It doesn't seem
> so.

No, but unstripped .o files are large simply because it needs to keep
the symbol information in there for resolving external symbols and C++
symbol names are large. Also, even when stripped they may be large
because it is the linker that will remove duplicate symbols resulting
from template instantiations (like for example boost::lexical_cast),
which may be duplicated in each .o file.

Are you developing for an embedded platform? And are you using shared
or static libraries? You may also be interested in the following page
(slightly outdated, i.e. the numbers will be off), but the description
of how to build is still relevant:

http://www.webtoolkit.eu/wt/wiki/index.php/Wt_embedded

Regards,
koen

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to