Path: 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 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!!"