home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ukma!gatech!ncar!mimbres.cs.unm.edu!sandia!dlewis
- From: dlewis@sandia.UUCP (Dave Lewis )
- Newsgroups: comp.lang.c
- Subject: Re: Why C over FORTRAN
- Message-ID: <787@sandia.UUCP>
- Date: 28 Jan 93 13:16:46 GMT
- References: <1993Jan19.091814.176@turtle.fisher.com> <1404@pivot-sts.sbi.com> <RVILLA.93Jan27211009@navier.ae.utexas.edu>
- Organization: Sandia Natl Labs, Div. 9224
- Lines: 30
-
- In article <RVILLA.93Jan27211009@navier.ae.utexas.edu> rvilla@navier.ae.utexas.edu (reynaldo villarreal) writes:
- >
- >I am interested in the pros and cons of C vs. FORTRAN.(gcc vs f77 on a
- >Sun) I have to write code and have to give an informed choice to my
- >advisor on which to use.
-
- The choice of one language over another has more to do with the problem you
- wish to solve than it does with the languages you have to choose from. FORTRAN
- is very good for numeric computations. In fact, some FORTRANs can handle
- complex real numbers with very little work from the writter. On the other hand,
- I've seem people try to do things with lists in FORTRAN and the tricks with
- arrays that are required border on the grotesque! Also FORTRAN doesn't have
- user definable data types (RECORDS) and most don't have much (if any) support
- for structured programming.
-
- Remember what FORTRAN is for: Number Crunching!
-
- C is for systems programming.
-
- Decide which your application is closer to and choose the right tool for
- the job!
-
- -----------------------------------------------------------------------------
- David Lewis
- It is inevitable that we shall eventually become indistinguishable from our
- machinery! OR Computers, Martial Arts, and RPGs are better than Sex, Drugs,
- and Rock n'Roll! Well ... Maybe not better than Sex!
- uucp: ...{ucbvax | gatech}!unmvax!sandia!dlewis
- InterNet: unmvax.unm.edu!sandia!dlewis or sandia!dlewis@unmvax.unm.edu
- -----------------------------------------------------------------------------
-