home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / fortran / 5130 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.9 KB  |  41 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!usc!sol.ctr.columbia.edu!eff!news.oc.com!convex!patrick
  3. From: Patrick F. McGehearty <patrick@convex.COM>
  4. Subject: Re: Fast I/O
  5. Originator: patrick@wagner.convex.com
  6. Sender: usenet@news.eng.convex.com (news access account)
  7. Message-ID: <1993Jan22.193019.12936@news.eng.convex.com>
  8. Date: Fri, 22 Jan 1993 19:30:19 GMT
  9. Reply-To: patrick@convex.COM (Patrick F. McGehearty)
  10. References: <1jhqkhINNno3@bigboote.WPI.EDU> <1993Jan21.081105.4047@molene.ifremer.fr>
  11. Nntp-Posting-Host: wagner.convex.com
  12. Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
  13. X-Disclaimer: This message was written by a user at CONVEX Computer
  14.               Corp. The opinions expressed are those of the user and
  15.               not necessarily those of CONVEX.
  16. Lines: 23
  17.  
  18. In article <1993Jan21.081105.4047@molene.ifremer.fr> molagnon@ditigo.ifremer.fr writes:
  19. (revised for brevity):
  20. Why don't compilers optimize I/O lists such as
  21.  
  22.       write (lu) (a (j), j=1,n)
  23. to be as fast as
  24.       write (lu) a
  25.  
  26.  
  27. Convex Fortran does, and in the recent past, also added the optimization for:
  28.       write (lu) (a (j,i), j=1,n)
  29.  
  30. In my opinion, the answer to the question is that there is no technical
  31. reason for compilers to not make this optimization.  Rather it is a
  32. question of resources and structural pressures.  There are always more
  33. potential optimizations and features to add to a language like Fortran
  34. than there are resources to add them (Fortran 90 makes this statement
  35. self-evident :-).  If a compiler group has been entirely driven by the old
  36. simple benchmarks such as Whetstones, Dhrystones, and Linpack 100x100, 
  37. they will not even realize that there is a worthwhile optimization to be
  38. made in this case.  If they use real production applications, then the
  39. optimization may get on their to-do list, depending on their target market
  40. segment. 
  41.