From: Igor Mikolic-T. <ig...@al...> - 2002-09-20 20:27:26
|
Get "f2c" at www.netlib.org. It will convert Fortran into C. >I want to convert the Fortran source code to "C" so I can better >understand the code they wrote. If this is your goal, f2c will probably _not_ help you. The tool generates C as a form of "portable assembler" -- it is not meant for human consumption. Humans *can* read it (I have worked with it on many occasions), but it is never a fun experience. I think that it will probably be quicker to learn to read Fortran than to make sense of the f2c output. Fortran is actually rather easy to read -- with the exception of a handful of older statements (computed goto and arithmetic if), most of the control statements and expressions are relatively obvious. Of course, YMMV. Igor At 09:11 AM 9/20/2002 -0700, you wrote: >Message: 10 >From: "Sternbach, William [IT]" <wil...@ci...> >To: "'min...@li...'" > <min...@li...> >Date: Fri, 20 Sep 2002 11:49:41 -0400 >Subject: [Mingw-users] Mingw GCC: Fortran to "C" conversion possible? > >Hello, > >I downloaded a high quality Asteroid Orbit Determination software >called Orbfit which was written by scientists and astronomers at >the Pisa Observatory in Italy. Given a set of asteroid observations >which you can make with your telescope, the Orbfit Software >can generate the precise Orbital Elements (an equation you can use >to predict future asteroid positions years into the future). > >The Fortran source code and complete instructions can be downloaded at: >http://newton.dm.unipi.it/~neodys/astinfo/orbfit/ > >I would like to convert this Fortran Source code to "C". > >I know that Mingw GCC 3.2 has a Fortran compiler included. > >Question: > Does anyone know if Mingw GCC 3.2 converts Fortran to "C" > and then send the converted "C" code into the "C" compiler to > produce the EXE file. If this is the way Mingw GCC works, > is there a way to view the converted "C" code? > >I want to convert the Fortran source code to "C" so I can better >understand the code they wrote. > >Thanks in advance for your Email reply. > >- Bill |