home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!destroyer!gatech!hubcap!mjs
- From: mjs@hubcap.clemson.edu (M. J. Saltzman)
- Subject: Re: Fortran to C conversion: Why bother?
- Message-ID: <1992Nov11.185431.13154@hubcap.clemson.edu>
- Organization: Clemson University, Clemson SC
- References: <1992Nov9.131601.167@gems.vcu.edu> <20849@fritz.filenet.com> <1992Nov11.172747.1959@mksol.dseg.ti.com>
- Date: Wed, 11 Nov 1992 18:54:31 GMT
- Lines: 45
-
- In article <1992Nov11.172747.1959@mksol.dseg.ti.com> mccall@mksol.dseg.ti.com (fred j mccall 575-3539) writes:
- >In <20849@fritz.filenet.com> scotth@felix.filenet.com (Scott Hopson) 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.
- >>>[...]
-
- >>[...]
- >>Many companies think seriously about converting their old code into new code,
- >>even if the functionality is the same. This is because they usually want the
- >>same functionality but with the opportunity to enhance old systems.
- >
- >The problem with this decision is that the code resulting from
- >automatic translations is usually something less than maintainable, so
- >you would still have to either maintain the FORTRAN or reimplement in
- >maintainable C.
-
- That's right, but maintaining the Fortran isn't such a bad way to go.
- One of the points in this thread is that "f2c | cc" is a perfectly
- servicable Fortran compiler substitute for many applications.
-
- >Converters are useful for those cases where you need
- >to get the first release of a product out the door when you are in a
- >new environment, but IMHO trying to maintain the output of a converter
- >after chucking the original code is rather like maintaining object
- >after chucking the source code. It is somewhat more difficult than taking
- >the time to reimplement properly in the new language.
-
- I don't think it's widely a widely-advocated strategy to maintain the
- *output* of any program generator. You always maintain the input.
- It's more or less like compiling your C code, throwing away the source
- and trying to maintain the code using the assembler listing.
-
- >
- >--
- >"Insisting on perfect safety is for people who don't have the balls to live
- > in the real world." -- Mary Shafer, NASA Ames Dryden
- >------------------------------------------------------------------------------
- >Fred.McCall@dseg.ti.com - I don't speak for others and they don't speak for me.
-
- --
- Matthew Saltzman
- Clemson University Math Sciences
- mjs@clemson.edu
-