Article View: gnu.gcc.help
Article #50123Help: enormous .o files from g++
From: Drinks All The Water
Date: Mon, 15 Nov 1993 17:07
Date: Mon, 15 Nov 1993 17:07
25 lines
1387 bytes
1387 bytes
I have a library broken into 20 or so source files (one for each class). There are two small template classes used as containers. If I compile it traditionally, a file at a time, and build a library, the individual .o files are all in the 40k range, and the resulting library over a meg. If I instead pour the files through cat and pass the result to gcc as a single source file (I do a bit of #ifdeffing of the header file to make this work of course), the resulting library is only 80k!!! 1. Is this due to the use of template classes? 2. Will gcc 2.5.x help? 3. Anyone have it working for Linux? The FAQs out Linux- way suggest not. Thanks, email preferred. -T -- i'll be under the floorboards with my face in the sun
Technical Details
Message-ID:
<boutellCGJM99.2xK@netcom.com>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!sol.ctr.columbia.edu!news.kei.com!yeshua.marcam.com!zip.eecs.umich.edu!umn.edu!csus.edu!netcom.com!boutellShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,ad6f10e486631961,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-15 09:59:23 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!sol.ctr.columbia.edu!news.kei.com!yeshua.marcam.com!zip.eecs.umich.edu!umn.edu!csus.edu!netcom.com!boutell From: boutell@netcom.com (Drinks All The Water) Subject: Help: enormous .o files from g++ Message-ID: <boutellCGJM99.2xK@netcom.com> Organization: NETCOM On-line Communication Services (408 241-9760 guest) Distribution: gnu Date: Mon, 15 Nov 1993 17:07:56 GMT Lines: 25