Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!cs.utexas.edu!convex!texsun!newstop!exodus!exodus-bb!khb From: khb@chiba.Eng.Sun.COM (Keith Bierman fpgroup) Newsgroups: comp.sys.sgi Subject: Re: f77 and -static option Message-ID: Date: 25 Feb 91 23:39:34 GMT References: <9102251256.AA06226@aero36.larc.nasa.gov> Sender: news@exodus.Eng.Sun.COM Organization: Sun MegaSystems Lines: 20 In-reply-to: blbates@aero36.larc.nasa.gov's message of 25 Feb 91 12:56:40 GMT ...4. Is it buggy Fortran code that requires -static to be used, or just normal > Fortran coding practices? There are many codes which make the assumption that values defined in one procedure call, retain their last value for the next call. This isn't standard conforming (i.e. read is a user code bug). There are also many codes which implicitly assume that uninitialized variables are zero. This is also not standard conforming (x3.9-1978 true for the last paragraph also). There are static analysis tools (ala lint) which are very handy. I urge everyone who codes or ports Fortran codes to procure one (a short list, and long review of one, available upon request). -- ---------------------------------------------------------------- Keith H. Bierman kbierman@Eng.Sun.COM | khb@chiba.Eng.Sun.COM SMI 2550 Garcia 12-33 | (415 336 2648) Mountain View, CA 94043 Brought to you by Super Global Mega Corp .com