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