Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ames!sgi!shinobu!odin!victoria.esd.sgi.com!robert From: robert@victoria.esd.sgi.com (Robert Skinner) Newsgroups: comp.sys.sgi Subject: Re: executable size Message-ID: <4566@odin.SGI.COM> Date: 26 Feb 90 20:27:42 GMT References: <17280032@acf4.NYU.EDU> <3747@uceng.UC.EDU> Sender: news@odin.SGI.COM Reply-To: robert@sgi.com Organization: Silicon Graphics Inc., Entry Systems Division Lines: 22 In article <17280032@acf4.NYU.EDU>, mcqueen@acf4.NYU.EDU (David M. McQueen) writes: > /* acf4:comp.sys.sgi / trohling@uceng.UC.EDU (tom rohling) / 12:27 am Feb 24, 1990 */ > > Two ways I have found to reduce the size of executables are: > > 1) compile using shared graphics libraries. As an example (Fortran, but > similar and even greater reductions are possible with C programs): > > With f77 program.f -lfgl -lgl : 652704 bytes > With f77 program.f -lfgl -lgl_s : 453440 bytes > don't forget to link with the shared C library also (-lc_s). This results in an additional savings for any program, graphics or not. Robert Skinner robert@sgi.com Whoa Homer, don't have a cow. - Bart Simpson