🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51495

How can I build very small executables?

#51495
From: Alexander Brown
Date: Tue, 11 May 1993 21:04
9 lines
1059 bytes
I am running Linux at home and SunOS at school.  In both operating systems,
some of the system utilities in /usr/bin such as echo, cat, etc. are very
small executable files.  When I compile them myself I can't seem to 
build a program smaller than 9600 bytes (using gcc -N -s).  Even the 
program     main() {}  ends up this big.

How were those small programs built?

Alex.   (abrown@math.ucla.edu)
Technical Details
Message-ID: <1993May11.210420.11595@math.ucla.edu>
Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!scsing.switch.ch!news.univie.ac.at!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!usc!ucla-cs!ucla-ma!oak!abrown

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,85713ba5d92e1394,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-05-11 20:35:29 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!ira.uka.de!scsing.switch.ch!news.univie.ac.at!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!usc!ucla-cs!ucla-ma!oak!abrown
From: abrown@oak.math.ucla.edu (Alexander Brown)
Subject: How can I build very small executables?
Message-ID: <1993May11.210420.11595@math.ucla.edu>
Sender: news@math.ucla.edu
Organization: UCLA Mathematics Department
Distribution: gnu
Date: Tue, 11 May 93 21:04:20 GMT
Lines: 9