Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!usc!aero!malibu!birenboi From: birenboi@malibu.aero.org (Aaron Birenboim) Newsgroups: gnu.g++ Subject: linking on sun OS4 Summary: why do I get huge executables? Keywords: link,object,executable Message-ID: <55240@aerospace.AERO.ORG> Date: 1 Aug 89 17:34:58 GMT Sender: news@aerospace.aero.org Reply-To: birenboi@malibu.UUCP (Aaron Birenboim) Distribution: gnu.g++ Organization: The Aerospace Corp., El Segundo CA Lines: 21 I'm new to g++ and I have a question. Why are my g++ executable files so HUGE. I'm on a sun 4/280 running g++1.35. It produces reasonably sized .o files, but for a simple 1 or 2 hundred line program my executables are around 250K. Yes, i am using a lot of libraries like stdio, math, and stream, but this is rediculous. Similar code in cc form sun prodeces executables less that 1/4 the size. Any suggestions about linking? What about dynamic object libraries? Where can I learn about them? Are they my problem? Please help me. I may be ignorant, but I'm the expert around here and the sys-admin is not convinced that these huge files are not just standard overhead. Aaron "The Lumberjack" Birenboim | "I'm a ramblin' wreck, | headed to : GO TROJANS!! | birenboi%malibu.aero.org@aerospace.aero.org | GEORGIA TECH!!"