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

  1. Path: sparky!uunet!ogicse!usenet.coe.montana.edu!rpi!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!cis.ksu.edu!mac
  2. From: mac@cis.ksu.edu (Myron A. Calhoun)
  3. Newsgroups: comp.lang.fortran
  4. Subject: Re: f77 Compiler
  5. Message-ID: <mac.726084057@depot.cis.ksu.edu.cis.ksu.edu>
  6. Date: 3 Jan 93 17:56:16 GMT
  7. Article-I.D.: depot.mac.726084057
  8. References: <1993Jan2.202258.28422@leland.Stanford.EDU>
  9. Organization: Kansas State University
  10. Lines: 19
  11. NNTP-Posting-Host: depot.cis.ksu.edu
  12.  
  13. hockbin@leland.Stanford.EDU (hock-bin lim) writes:
  14. >    While compiling a program using f77 in the Unix environment, what 
  15. >is the -option command to generate a listing file (with line number
  16. >appended for debugging purposes?  What is the -option command to generate
  17. >the variable statistics at the end of the "list" file?
  18.  
  19. To find compile-time errors in the easiest possible way, pipe the output
  20. of the compiler through "error".  For example, to compile a file named
  21. "xx.f", I type "ff xx" and (among other things) a script file substitutes
  22. "xx" for each $1 in the following line:
  23.  
  24.    f77 -C -u -w -o .$1.x $1.f |& error -v -t .f
  25.  
  26. --Myron.
  27. -- 
  28. # We preserve our freedoms using four boxes:  soap, ballot, jury, and cartridge.
  29. # Myron A. Calhoun, PhD EE; Assoc. Professor  (913) 539-4448 home
  30. # INTERNET: mac@cis.ksu.edu (129.130.10.5)          532-6350 work, 532-7353 fax
  31. #     UUCP: ...rutgers!depot!mac     Packet-BBS: W0PBV @ K0VAY.#NEKS.KS.USA.NAOM
  32.