home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!usenet.coe.montana.edu!caen!spool.mu.edu!agate!agate.berkeley.edu!dodd
- From: dodd@mycenae.cchem.berkeley.edu (Lawrence R. Dodd)
- Newsgroups: comp.lang.fortran
- Subject: Re: f77 Compiler
- Message-ID: <DODD.93Jan3103708@mycenae.cchem.berkeley.edu>
- Date: 3 Jan 93 18:37:08 GMT
- Article-I.D.: mycenae.DODD.93Jan3103708
- References: <1993Jan2.202258.28422@leland.Stanford.EDU>
- <mac.726084057@depot.cis.ksu.edu.cis.ksu.edu>
- Organization: Dept of Chemical Engineering, Polytechnic Univ, NY, USA
- Lines: 21
- NNTP-Posting-Host: mycenae.cchem.berkeley.edu
- In-reply-to: mac@cis.ksu.edu's message of 3 Jan 93 17:56:16 GMT
-
- >>>>> "Myron" == Myron A. Calhoun <mac@cis.ksu.edu> writes:
- Myron> NNTP-Posting-Host: depot.cis.ksu.edu
-
- Myron> hockbin@leland.Stanford.EDU (hock-bin lim) writes:
- > While compiling a program using f77 in the Unix environment, what
- >is the -option command to generate a listing file (with line number
- >appended for debugging purposes? What is the -option command to generate
- >the variable statistics at the end of the "list" file?
-
- Myron> To find compile-time errors in the easiest possible way, pipe the output
- Myron> of the compiler through "error". For example, to compile a file named
- Myron> "xx.f", I type "ff xx" and (among other things) a script file substitutes
- Myron> "xx" for each $1 in the following line:
-
- Myron> f77 -C -u -w -o .$1.x $1.f |& error -v -t .f
-
- Actually, the easiest possible way to find fortran compile-time
- errors/warnings is to use the compile command in GNU emacs. It allows you to
- step through all the compilation errors one at a time while pointing to the
- offending lines of code in the file(s). It was one of the primary reasons I
- started to use GNU emacs. (Advertisement Ends)
-