🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.fortran
7 messages
7 total messages Started by Brian D. Stark Thu, 11 Apr 1996 22:04
Fortran to C
#4636
Author: Brian D. Stark
Date: Thu, 11 Apr 1996 22:04
10 lines
573 bytes
I'm looking for a program that will take fortran 77 code and
translate it to ansi c.  I've heard that Watcom can do this.
Has anyone used Watcom to do this or any other program and
what were your results?

Thanks,

brian
-- 
Go Chargers
Re: Fortran to C
#4637
Author: Jose Luis Marin Espa/ol
Date: Fri, 12 Apr 1996 13:06
14 lines
1010 bytes
Brian D. Stark (stark@saturn.sdsu.edu) wrote:
: I'm looking for a program that will take fortran 77 code and
: translate it to ansi c.  I've heard that Watcom can do this.
: Has anyone used Watcom to do this or any other program and
: what were your results?

   Wouldn't 'f2c' from att (netlib) be your choice? It translates to more-
or-less readable C code which uses some support routines (also in C). But
it comes with full source, both for the translator and the support libs.
Hope it helps,


J L Marin
University of Zaragoza
Re: Fortran to C
#4638
Author: Bev Lightfoot
Date: Fri, 12 Apr 1996 13:37
22 lines
1226 bytes
stark@saturn.sdsu.edu (Brian D. Stark) wrote:
>I'm looking for a program that will take fortran 77 code and
>translate it to ansi c.  I've heard that Watcom can do this.
>Has anyone used Watcom to do this or any other program and
>what were your results?
>
>Thanks,
>
>brian
>-- 
>Go Chargers


Brian:

Our company offers a FORTRAN to C conversion package, FOR_C, which will 
perform the type of translations you are seeking.  It supports standard 
F77, with many VAX, Prime, IBM-VS, HP and Microsoft extensions as well.  
The translated code is very readable and easy to maintain in C.

Please contact us for more information, or check our Web Site 
(http://www.cobalt-blue.com).
Re: Fortran to C
#4639
Author: William Docter
Date: Fri, 12 Apr 1996 14:51
16 lines
1172 bytes
Brian D. Stark wrote:
> I'm looking for a program that will take fortran 77 code and
> translate it to ansi c.  I've heard that Watcom can do this.
> Has anyone used Watcom to do this or any other program and
> what were your results?

There is a fortran-to-C converter called 'f2c' that is available at the
Netlib Repository.  You can find the files in question at:

       http://www.netlib.org/f2c/index.html

--
William Docter
Chemical Process Modeling and Control Research Center
Lehigh University Department of Chemical Engineering
http://www.lehigh.edu/wad2/public/www-data/wad2.html
Re: Fortran to C
#4640
Author: Deutscher
Date: Fri, 12 Apr 1996 16:02
49 lines
2494 bytes
Bev Lightfoot (bev@atl.mindspring.com) wrote:
: stark@saturn.sdsu.edu (Brian D. Stark) wrote:
: >I'm looking for a program that will take fortran 77 code and
: >translate it to ansi c.  I've heard that Watcom can do this.
: >Has anyone used Watcom to do this or any other program and
: >what were your results?
: >
: >Thanks,
: >
: >brian
: >-- 
: >Go Chargers


: Brian:

: Our company offers a FORTRAN to C conversion package, FOR_C, which will 
: perform the type of translations you are seeking.  It supports standard 
: F77, with many VAX, Prime, IBM-VS, HP and Microsoft extensions as well.  
: The translated code is very readable and easy to maintain in C.

There is also a free package f2c, which however produces C code mainly
aimed at being compiler in[ut rather than being read and maintained by
human readers. (At least the versions I have used were not, maybe this
has changed?) Anyway, if you want it to compile it may do the trick, if
you want to use the C code and maintain it later, it may very well not
(especially since f2c code requires to be linked with some f2c library).

I have used it extensively before g77 became available,
and ist has been ported to many platforms (comping from UNIX, I would think,
it is at least on OS/2 and DOS, I would not be surprised about a boat load
of others, but I don't know for sure.)

Kind regards, Stefan

: Please contact us for more information, or check our Web Site 
: (http://www.cobalt-blue.com).




--
==========================================================================
Stefan A. Deutscher, sad@utk.edu, (001)-423-[522-7845|974-7838|574-5897]
                                             home^    UTK^     ORNL^
==========================================================================
If there is software you'd like to have in a native version, visit the:
OS/2 E-mail Campaign Page http://www.andrews.edu/~boyko/email.html
--------------------------------------------------------------------------
Re: Fortran to C
#4641
Author: Syed Zaeem Hosain
Date: Sat, 13 Apr 1996 17:32
22 lines
1336 bytes
In article <4kjvm6$ghc@saturn.sdsu.edu>, stark@saturn.sdsu.edu (Brian D. Stark) writes:
>I'm looking for a program that will take fortran 77 code and
>translate it to ansi c.  I've heard that Watcom can do this.
>Has anyone used Watcom to do this or any other program and
>what were your results?

Your question is partially answered in the FAQ (it does not cover
Watcom). Please look at it and see the answer to:

20.26:  Does anyone know of a program for converting Pascal or FORTRAN
        (or LISP, Ada, awk, "Old" C, ...) to C?

The FAQ can be found at rtfm.mit.edu in /pub/usenet/comp.lang.c/

								Z


-- 
-------------------------------------------------------------------------
| Syed Zaeem Hosain          P. O. Box 610097            (408) 441-7021 |
| Z Consulting Group        San Jose, CA 95161             szh@zcon.com |
-------------------------------------------------------------------------
Re: Fortran to C
#4642
Author: Dave Love
Date: Mon, 15 Apr 1996 15:03
7 lines
862 bytes
>>>>> On 12 Apr 1996 15:06:01 +0200, marin@posta.unizar.es (Jose Luis Marin Espa/ol) said:

 Jose>    Wouldn't 'f2c' from att (netlib) be your choice? 

Not on its own.  There is an add-on on the NAG site somewhere
(http://www.nag.co.uk) which will help produce maintanable C.  Better
to keep the Fortran, of course <1/2 :-).
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads