🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49924

Help needed reducing size of g++ .o files

#49924
From: Thomas M. J. Fruchterman
Date: Mon, 06 Dec 1993 20:07
11 lines
1341 bytes
  I have been developing a large class library in g++. I am finding that 
code files (*.o) for deeply nested classes are growing very large even
though I am only overriding one or two methods in the derived class.
  Devived classes are on the order of 10 levels deep 
  single inheritance only
  approximately 100 -200 methods in the virtual function table
  total instance data approximately 100 bytes
  size of .o file without debugging code - approximately 50K. 

  I need to reduce that 50k number to something reasonable. Does anyone
have experience with what causes this bloat and how to deal with it
Technical Details
Message-ID: <2e03d8$r4e@nwfocus.wa.com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!news.cyberstore.ca!nwnexus!maverick

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,442311dacc2c59d2,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-07 12:33:22 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!math.ohio-state.edu!news.cyberstore.ca!nwnexus!maverick
From: maverick@halcyon.com (Thomas M. J. Fruchterman)
Newsgroups: gnu.gcc.help
Subject: Help needed reducing size of g++ .o files
Date: 6 Dec 1993 12:07:04 -0800
Organization: "A World of Information at your Fingertips"
Lines: 12
Sender: news@nwfocus.wa.com
Message-ID: <2e03d8$r4e@nwfocus.wa.com>
NNTP-Posting-Host: nwfocus.wa.com