home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!stanford.edu!CSD-NewsHost.Stanford.EDU!CS.Stanford.EDU!tsmith
- From: tsmith@CS.Stanford.EDU (Todd Michael Smith)
- Subject: Re: Fortran to C conversion: Why bother?
- Message-ID: <1992Nov10.180818.4858@CSD-NewsHost.Stanford.EDU>
- Sender: news@CSD-NewsHost.Stanford.EDU
- Organization: Computer Science Department, Stanford University.
- References: <1992Nov9.131601.167@gems.vcu.edu> <BxIEwH.F59@netnews.jhuapl.edu>
- Date: Tue, 10 Nov 1992 18:08:18 GMT
- Lines: 32
-
- In article <BxIEwH.F59@netnews.jhuapl.edu>,
- ygor@aplexus.jhuapl.edu (Daniel E. White (F2C)) 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.
- |> |>
- |> |> -Hugh
- |>
- |> I second that. I've seen too much C source that looks like FORTRAN with
- |> semi-colons appended to the line endings.
- |>
-
- What if you don't have a FORTRAN compiler?
-
- What if you have a special C compiler (bought or built yourself) that
- performs optimizations that you would like to use on FORTRAN code also?
-
- What if you want to move a program into C, but would rather automatically
- translate and then modify the code than rewrite or translate the whole
- thing by hand?
-
- --
- Todd Smith tsmith@cs.stanford.edu
- Life is a word problem.
-