home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / fortran / 3565 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  1.8 KB

  1. Xref: sparky comp.lang.fortran:3565 comp.unix.ultrix:6919
  2. Newsgroups: comp.lang.fortran,comp.unix.ultrix
  3. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.iastate.edu!cfrandal
  4. From: cfrandal@iastate.edu (Charles F Randall)
  5. Subject: Re: fsplit problem with Ultrix 4.2c and Fortran 3.2
  6. Message-ID: <1992Sep15.171027.23584@news.iastate.edu>
  7. Keywords: fsplit
  8. Sender: news@news.iastate.edu (USENET News System)
  9. Organization: Iowa State University, Ames, IA
  10. References: <15452@umd5.umd.edu>
  11. Date: Tue, 15 Sep 1992 17:10:27 GMT
  12. Lines: 28
  13.  
  14. In article <15452@umd5.umd.edu> kathy@umd5.umd.edu (Kathryn M. Orhelein) writes:
  15. >When it is fsplit (into 20 routines), each compiled with f77 -c program.name,
  16. >and put together with  f77 -o test2 main000.o ....
  17. >it gives a different set of results (consistently).
  18. >The system is a DS 5000/200 running Ultrix 4.2c and DEC Fortran V3.2.
  19.  
  20. Look at all calls to subroutines and functions and examine the type
  21. and size of the arguments that are passed and those that are
  22. expected.  I'll bet you'll find some pretty gross mismatches. 
  23.  
  24. The DEC Fortran compilers are able to try to "guess" at the subroutine
  25. interfaces when all units are compiled together. They can't "guess"
  26. when compiled separately. (Any DEC people out there care to comment on
  27. how this is done?)
  28.  
  29. Compile the source with the "-V" option to get the compiler listing
  30. file.  There'll be information there that tells you what the compiler
  31. thinks the size and type of all variables are. You should be able to
  32. use "ftnchek" to help you out also.
  33.  
  34. FYI,
  35. Randy
  36.  
  37. Charles F. Randall IV |    _               | "Are you kidding? I study
  38. Aerospace Engineering |  == \---------..,  |  from crisis to crisis!"
  39. Iowa State University |  ==___-----_____>  |       -anonymous student
  40. cfrandal@iastate.edu  | _____b________d___ | <== ascii space shuttle
  41.  
  42.