f77 and -static option

Keith Bierman fpgroup khb at chiba.Eng.Sun.COM
Tue Feb 26 10:39:34 AEST 1991


...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 at Eng.Sun.COM | khb at chiba.Eng.Sun.COM
SMI 2550 Garcia 12-33			 | (415 336 2648)   
    Mountain View, CA 94043



More information about the Comp.sys.sgi mailing list