home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!mailgzrz.TU-Berlin.DE!math.fu-berlin.de!news.th-darmstadt.de!adams
- From: adams@pdv3.fmr.maschinenbau.th-darmstadt.de (Adams)
- Subject: Re: Fortran to C conversion: Why bother?
- Sender: news@news.th-darmstadt.de (The News System)
- Message-ID: <ADAMS.92Nov11012430@PDV2.pdv3.fmr.maschinenbau.th-darmstadt.de>
- In-Reply-To: hleaves@gems.vcu.edu's message of 9 Nov 92 13: 16:00 -0400
- Date: Wed, 11 Nov 1992 01:24:30 GMT
- References: <1992Nov9.131601.167@gems.vcu.edu>
- Nntp-Posting-Host: pdv2.fmr.maschinenbau.th-darmstadt.de
- Organization: TH-Darmstadt
- Lines: 48
-
- 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?
-
- Well, dreadful enough, there are just a few reasons:
-
- 1) Some systems are not equipped anymore with Fortran-Compilers,
- but you have to keep the old stuff running.
- You want to have one source for all systems to support,
- sso you will take "C", as "C" is supported virtual everywhere,
- something FORTRAN always claimed.
-
- 2) Those FORTRAN programs are not worth to be recoded,
- but must yet run for a limited time, on a new system.
-
- 3) You want to integrate old FORTRAN stuff, like EISPACK, into new
- software, like khoros. Usage of FORTRAN or Fortran forbidds itself,
- as I/O system is record based and part of the language itself.
-
- Fortran does not fit into an event driven
- enviroment (X-Widnows) together with character based I/O (***X).
-
-
- > 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.
-
- It saves workhours.
-
- Most of the FORTRAN stuff I know of will never be rewritten (manually)
- in "C", as reimplementations in Maxima(Lisp) and Prolog are
- underway [spelling?].
-
- Perhaps "C"-sources will be derived from specification in Maxima.....
-
- perhaps unusual,
-
- best adams
-
-
-
-
-