home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / fortran / 4891 < prev    next >
Encoding:
Internet Message Format  |  1993-01-03  |  1.7 KB

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