home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!ames!saimiri.primate.wisc.edu!sdd.hp.com!hplabs!felix!fritz!scotth
- From: scotth@felix.filenet.com (Scott Hopson)
- Newsgroups: comp.lang.c
- Subject: Re: Fortran to C conversion: Why bother?
- Message-ID: <20849@fritz.filenet.com>
- Date: 11 Nov 92 02:13:45 GMT
- References: <1992Nov9.131601.167@gems.vcu.edu>
- Reply-To: scotth@fritz.filenet.com (Scott Hopson)
- Organization: FileNet Corp., Costa Mesa, CA
- Lines: 32
-
- Keywords
- 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.
-
- Let's say your company was moving from a system like an IBM running MVS or a
- DEC running VMS or some other similar beast to a Unix machine. You had lots of
- OLD code which was written in FORTRAN but your new environment was going
- strictly C and you knew there might be a need to maintain the OLD code, but you
- lost all your Hard Core Fortran Oldtimers.
-
- What would you decide to do?
-
- 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.
-
- This is just one reason but I'm sure others can think of more..
-
- :-)
-
- Later Dudes....
-
- --
- Scott Hopson (scotth@filenet.com)
-