D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] GCC/g++ compilation



On Sunday 20 January 2002 2:01 am, Simon Waters wrote:
31kb seems a lot for such a simple console program. Is KDevelop bloating
the program?

I doubt it.

KDevelop compile: 31k
g++ -o test main.cpp: 14k

After all, program functionality doesn't come much smaller than the
above.

strip a.out (Should lose 20K), but C++ does bloat stuff a little
over C. In VB4 it would be about 1.4MB.

Aha!

After strip hw (ex-KDevelop) hw was 3.9k! That's better! Thanks Simon.
(the g++ version was reduced to 3.8k after strip)

Will 'strip' be run during an rpm install by default or do I have to put it 
in the spec file somehow?

-- 

Neil Williams
=============
http://www.codehelp.co.uk
neil@xxxxxxxxxxxxxx
linux@xxxxxxxxxxxxxx
neil@xxxxxxxxxxxx


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly