home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16299 < prev    next >
Encoding:
Text File  |  1992-11-10  |  2.3 KB  |  62 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!mailgzrz.TU-Berlin.DE!math.fu-berlin.de!news.th-darmstadt.de!adams
  3. From: adams@pdv3.fmr.maschinenbau.th-darmstadt.de (Adams)
  4. Subject: Re: Fortran to C conversion: Why bother?
  5. Sender: news@news.th-darmstadt.de (The News System)
  6. Message-ID: <ADAMS.92Nov11012430@PDV2.pdv3.fmr.maschinenbau.th-darmstadt.de>
  7. In-Reply-To: hleaves@gems.vcu.edu's message of 9 Nov 92 13: 16:00 -0400
  8. Date: Wed, 11 Nov 1992 01:24:30 GMT
  9. References: <1992Nov9.131601.167@gems.vcu.edu>
  10. Nntp-Posting-Host: pdv2.fmr.maschinenbau.th-darmstadt.de
  11. Organization: TH-Darmstadt
  12. Lines: 48
  13.  
  14. In article <1992Nov9.131601.167@gems.vcu.edu> hleaves@gems.vcu.edu writes:
  15.  
  16.  
  17. >   I was wondering why anyone would bother using the f2c (or similar) program to
  18. >   translate fortran code directly into C. All you end up with is C code that
  19. >   exactly mimics the functionality of the original fortran code. Its not as if
  20. >   the translating program rewrites your algorithms to use the parts of C that
  21. >   make C really useful. Its just fortran code expressed in C. What's the point?
  22.  
  23. Well, dreadful enough, there are just a few reasons:
  24.  
  25.     1) Some systems are not equipped anymore with Fortran-Compilers,
  26.     but you have to keep the old stuff running.
  27.     You want to have one source for all systems to support, 
  28.     sso you will take "C", as "C" is supported virtual everywhere,
  29.     something FORTRAN always claimed.
  30.  
  31.     2) Those FORTRAN programs are not worth to be recoded,
  32.     but must yet run for a limited time, on a new system.
  33.  
  34.     3) You want to integrate old FORTRAN  stuff, like EISPACK, into new
  35.     software, like khoros. Usage of FORTRAN or Fortran forbidds itself,
  36.     as I/O system is record based and part of the language itself.
  37.     
  38.     Fortran does not fit into an event driven
  39.     enviroment (X-Widnows) together with character based I/O (***X).
  40.  
  41.  
  42. >   If you're going to write programs in fortran, use a fortran compiler. If you
  43. >   want to use the features of C, learn C and use a C compiler. Using f2c doesnt
  44. >   give you any of the advantages of designing and writing the original program in
  45.    C.
  46.  
  47. It saves workhours. 
  48.  
  49. Most of the FORTRAN stuff I know of will never be rewritten (manually)
  50. in "C", as  reimplementations in Maxima(Lisp) and Prolog are
  51. underway [spelling?].
  52.  
  53. Perhaps "C"-sources will be derived from specification in Maxima.....
  54.  
  55. perhaps unusual,
  56.  
  57. best adams
  58.  
  59.  
  60.  
  61.  
  62.