Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!uhog.mit.edu!news.mathworks.com!newsfeed.internetmci.com!fnord.dfw.net!dfw.dfw.net!not-for-mail From: blythe@dfw.dfw.net (Mark Blythe) Newsgroups: comp.unix.bsd.bsdi.misc Subject: large executables! Date: 9 Aug 1996 13:58:17 GMT Organization: DFW Internet Services - DFWNet: 800-2-DFWNet Lines: 19 Message-ID: <4ufg5p$1k2@fnord.dfw.net> NNTP-Posting-Host: dfw.dfw.net X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] I use an ISP who runs on a BSDI system. This is my first experience with BSDI, although I've been a UNIX C/C++ programmer for several years. After programming on this BSDI system for a few months, I'm quite alarmed at the size of the executables I'm generating. Using gcc version 2.7.2, a simple one line "Hello world" program generates nearly a 10K executable. A modest 50 line program results in a 32K executable! This 50 line program should make a MUCH smaller program. No matter what optimization flags I pass to the compiler, the file size doesn't change a single byte. I've tried -O1 -O2 and -O3. Does anyone have any tips on how to generate smaller program files? His OS reports itself as "2.1 BSDI BSD/OS 2.1 Kernel #2" through uname -a. Thank you, Mark Blythe mark@whitehawk.com