home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / c / 16339 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  2.1 KB

  1. Path: sparky!uunet!ogicse!emory!gatech!concert!sas!mozart.unx.sas.com!sasghm
  2. From: sasghm@theseus.unx.sas.com (Gary Merrill)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Fortran to C conversion: Why bother?
  5. Message-ID: <BxK8Ln.Hw9@unx.sas.com>
  6. Date: 11 Nov 92 16:32:11 GMT
  7. Article-I.D.: unx.BxK8Ln.Hw9
  8. References: <1992Nov9.131601.167@gems.vcu.edu> <BxIEwH.F59@netnews.jhuapl.edu> <1992Nov11.150325.27062@nntp.nta.no>
  9. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  10. Organization: SAS Institute Inc.
  11. Lines: 30
  12. Originator: sasghm@theseus.unx.sas.com
  13. Nntp-Posting-Host: theseus.unx.sas.com
  14.  
  15.  
  16. In article <1992Nov11.150325.27062@nntp.nta.no>, hlj@hal.nta.no (Harald Ljoen FBA) writes:
  17. |> 
  18. |> In article <1992Nov9.131601.167@gems.vcu.edu>, hleaves@gems.vcu.edu writes:
  19. |> >I was wondering why anyone would bother using the f2c (or similar) program to
  20. |> >translate fortran code directly into C. All you end up with is C code that
  21. |> >exactly mimics the functionality of the original fortran code. Its not as if
  22. |> >the translating program rewrites your algorithms to use the parts of C that
  23. |> >make C really useful. Its just fortran code expressed in C. What's the point?
  24. |> >If you're going to write programs in fortran, use a fortran compiler. If you
  25. |> >want to use the features of C, learn C and use a C compiler. Using f2c doesnt
  26. |> >give you any of the advantages of designing and writing the original program in
  27. |> >C.
  28. |> 
  29. |> If we could click on a button with the label "undo-and-redo-in-C-the-last-35-
  30. |> years-work-of-one-zillion-scientists" the above would make sense.
  31. |> 
  32. |> f2c is used by C programmers that want to utilize existing, well-proven and
  33. |> available code written in FORTRAN. Why reinvent old wheels?
  34. |> 
  35. |> -- 
  36. |> ** Also sprach harald.ljoeen@nta.no **
  37.  
  38. One problem is that the well-proven-ness property is not preserved
  39. under translation.  Other properties not preserved are:  readability,
  40. extensibility, and efficiency.
  41. -- 
  42. Gary H. Merrill  [Principal Systems Developer, C Compiler Development]
  43. SAS Institute Inc. / SAS Campus Dr. / Cary, NC  27513 / (919) 677-8000
  44. sasghm@theseus.unx.sas.com ... !mcnc!sas!sasghm
  45.