🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #320

g++ linking

#320
From: Aaron Birenboim
Date: Tue, 01 Aug 1989 17:27
20 lines
1514 bytes
I'm new to g++, and I have a problem/question.  Small programs of say
a couple hundred lines are compiling into monster 250+K executables.
Yes, I'm using some functions in stdio, math, and stream, but this is still
rediculous.  The object modules are reasonable in size, so something
about the linker is caising the problem.  My sys-admin shrugs it
off as overhead, but I know this isn't true.  I'm on a sun 4/280
running OS4 and the sun cc compiles similar programs to about 50k.

Is there a linker option I should know about?  Should I be using a different
linker?  What about dynamic link libraries?  Where is there documemtation on this.

I may be ignorant, but I'm the c++ expert around here & I need HELP!

thanks in advance


Aaron "The Lumberjack" Birenboim             |  "I'm a ramblin' wreck,
                                             |       headed to : 
         GO TROJANS!!                        |
 birenboi%malibu.aero.org@aerospace.aero.org |      GEORGIA TECH!!"
Technical Details
Message-ID: <55238@aerospace.AERO.ORG>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!usc!aero!malibu!birenboi

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!usc!aero!malibu!birenboi
From: birenboi@malibu.aero.org (Aaron Birenboim)
Newsgroups: gnu.g++.bug
Subject: g++ linking
Summary: why are the executables so large?
Keywords: disk,files,executables, link,object
Message-ID: <55238@aerospace.AERO.ORG>
Date: 1 Aug 89 17:27:07 GMT
Sender: news@aerospace.aero.org
Reply-To: birenboi@malibu.UUCP (Aaron Birenboim)
Distribution: gnu
Organization: The Aerospace Corp., El Segundo CA
Lines: 20