In reply to Justin Mason's flatulent wordings,
>> "John P. Looney" said:
>> > Just compiled up Oscar (public key server) there. C++ software.
> > Accidentally left the -g flag in the compile line. It generated a 30MB
> > static library and a 13MB shared library. Wow. That's impressive. Took out
> > the -g option, and it came down to ~2MB.
> > Anyone know why C++ has so much extra debugging stuff in there, compared
> > to C ?
>> Name-mangled symbols; the types for each class and arg type will be
> mangled into function and variable names. Without -g, the names are
> stripped out. I'd say that'd be it.
Doubtful, a name mangled symbol usually adds about an extra character for the
return type and each argument type, the average symbol is only a few
characters longer than the equivalent C symbol, and I'm fairly certain that
those symbols are put in unstripped binaries compiled without the -g option.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!