executable size

Robert Skinner robert at victoria.esd.sgi.com
Tue Feb 27 07:27:42 AEST 1990


In article <17280032 at acf4.NYU.EDU>, mcqueen at acf4.NYU.EDU (David M.
McQueen) writes:
> /* acf4:comp.sys.sgi / trohling at 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 at sgi.com

		Whoa Homer, don't have a cow.
				- Bart Simpson



More information about the Comp.sys.sgi mailing list