home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / software / 3175 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  3.8 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!swrinde!emory!ogicse!flop.ENGR.ORST.EDU!gaia.ucs.orst.edu!gaia.ucs.orst.edu!news
  2. From: tpugh@oce.orst.edu (Tim Pugh)
  3. Newsgroups: comp.sys.next.software
  4. Subject: Re: FORTRAN-  and Pascal-Compiler
  5. Keywords: absoft FORTRAN
  6. Message-ID: <1h806gINN8o5@gaia.ucs.orst.edu>
  7. Date: 22 Dec 92 21:09:36 GMT
  8. Article-I.D.: gaia.1h806gINN8o5
  9. References: <1992Dec21.221221.10027@sifon.cc.mcgill.ca>
  10. Reply-To: Tim Pugh <tpugh@oce.orst.edu>
  11. Organization: University Computing Services - Oregon State University
  12. Lines: 60
  13. NNTP-Posting-Host: tsunami.oce.orst.edu
  14.  
  15. In article <1992Dec21.221221.10027@sifon.cc.mcgill.ca>  
  16. brit@wagner.Physics.McGill.CA (Dave Britton) writes:
  17. > I have had a fair amount of trouble with the absoft compiler, including
  18. > finding one bug that they blame on the 68040 chip. On the other hand
  19. > I have had no problems with f2c (available free on ftp sites) AND
  20. > programs tend to run quicker if I use f2c rather than the absoft
  21. > compiler. 
  22. > The absoft compiler is certainly fine for simple fortran but if
  23. > (like me) you have 300 subroutines of ancient fortran using all
  24. > sorts of dubious constructs, then forget it. For example, if you
  25. > have a subroutine that has entry points that allow an alternative
  26. > return code (ENTRY MYENTRY(A,*) syntax) then the subroutine itself
  27. > must be declared MYSUBROUTINE(...,*) even if the main subroutine 
  28. > does not use alternate returns. Similarly, absoft compiler is
  29. > annoyingly picky about where data statements can appear ( having
  30. > to change several hundred routines to fix this was also a pain).
  31. > Dave.
  32.  
  33. Here is another point-of-view for the absoft compiler:
  34. I've ported over 20,000 lines of FORTRAN 77 code from the Apollo workstations  
  35. to the NeXT with the absoft compiler. The software has FORTRAN 66 and FORTRAN  
  36. 77 statements plus Apollo specific language extensions.  The software contained  
  37. graphics, system calls, printing, formatted and unformatted i/o, fault  
  38. handlers, and complex data structures.  Note: my software did not jump around  
  39. like a jack rabbit using entry statements, only goto's, so I have no knowledge  
  40. of entry statement problems.
  41.  
  42. The only problems encountered were with FORTRAN 77 extensions, like intrinsics  
  43. functions and i/o statements, that the Apollo used to extend the language.   
  44. However, the absoft compiler did support a large set of the extensions so the  
  45. changes were few.  (Digital Librarian made the changes painless.)  The code  
  46. ported in less than a day, after having spent weeks porting system calls, fault  
  47. handlers, and graphics.
  48.  
  49. The absoft compiler supported all the necessary compiler flags to make the NeXT  
  50. software 100% compatible with the Apollo version.  I never had a problem with  
  51. the FORTRAN language interpretation made by the absoft compiler.  In fact, my  
  52. FORTRAN 77 code on the absoft compiler ports without problems to Sun's,  
  53. Apollo's, and RS-6000's.  Problems occur only when I write with FORTRAN  
  54. extensions.
  55.  
  56. The biggest problem was that I could not catch FPU faults.  The problem, told  
  57. by absoft, was with NeXT OS, not absoft which I agree.  I've also been told  
  58. that it's been fixed in NS3.0, although I have not had a chance to test it.   
  59. Another problem was in their 040 code generation (-N40) which absoft fixed in  
  60. their v3.2 compiler.  I never experienced the problem but switched to a safer  
  61. code generation switch (-N53) when I heard this.  The performance of the  
  62. software is good IMHO.
  63.  
  64. I don't have any performance comparisons between f2c and absoft but maybe  
  65. someone would like to post their results.  I have some compute intensive finite  
  66. difference code to make a comparison with if anyone is interested.
  67.  
  68.     - Tim -
  69. --
  70. Tim Pugh
  71. College of Oceanic and Atmospheric Sciences
  72. Oregon State University
  73. tpugh@oce.orst.edu
  74.