liebman@xrxedds.UUCP (Chris Liebman) (11/30/90)
I am looking for sources for a fortran 2 C translator. If any one can help please send me mail. This is for a very small project, I only have about 1200 lines of fortran to convert. Thanks in advance. Chris Liebman UUCP: ...!uunet!xrxedds!liebman ARPA: liebman.Herndon@Xerox.Com liebman@arisia.xerox.com ATT: 1-(703)-787-2032 XNS: liebman:Herndon:xerox INTELNET: 8*440-2032
gisle@ifi.uio.no (Gisle Hannemyr) (11/30/90)
[[ Sorry for posting, but mail to UUCP addresses bounces.]]
This is something I keep around for the periodic requests for Fortran to
C converters. I have not used any of the products.
Also, "Dr. Dobbs Journal on Software Tools" usually carry advertisements
from companies offering language converters.
-gisle h.
==============================================================================
From: dig@peritek.UUCP (Dave Gotwisner)
Newsgroups: comp.lang.c,comp.lang.fortran
Subject: Re: fortran to C converter
Summary: Green Hills Software has one. ADVERTISEMENT!!!!! (LONG)
Keywords: fortran,C,language,translator
Date: 12 Apr 89 04:37:37 GMT
Organization: Peritek Corp., Oakland, CA
Since I have responded to requests like this in the past, I figure I will
post it this time, in case anyone else may need it in the future and read
these groups.
Green Hills Software, Inc.
425 East Colorado Street, Suite 710
Glendale, CA 91205
(818) 246-5555
FAX: 818-246-7037
has such a beastie. I don't know how good it is, but we use one of their
other products (a 68K cross compiler running under VMS), and it is quite
good. Binary copies can be gotten from:
OASYS, Inc.
230 Second Ave.
Waltham, MA 02154
617-890-7889
From the data sheet (product summary?) (a lot of this means nothing to me,
I try to avoid Fortran):
Language
* ANSI Fortran-77 (Full language)
* DoD Mil-STD 1753
* VAX/VMS Extensions
* NAMELIST
* Full Syntax OPEN
* STRUCTURES
* %VAL, %REF, %LOC
* !comments
* ENCODE/DECODE
* INTEGER *1, *2
* Octal/Hex constants
* etc.
Optimizations
* Register allocation
* Strength reduction
* Loop Invariant elimination
* Common subexpressions
* Value propagation
* Tail recursion
* Loop rotation
* Static address elimination
Hosts
VAX/UNIX Sun-2 386 UNIX/DOS
VAX/VMS Sun-3
(others by arrangement)
If you want any more information, please contact either OASYS or
Green Hills.
Disclaimer: I do not work for either Green Hills or OASYS, and do not
get any money (or credit, or anything else) if you should buy this product.
I am posting this, just because it has been asked for several times in the
past, and I had the sheet on my desk.
Dave Gotwisner UUCP: ...!unisoft!peritek!dig
Peritek Corporation ...!vsi1!peritek!dig
5550 Redwood Road
Oakland, CA 94619 Phone: 1-415-531-6500
==============================================================================
From: scf@statware.UUCP (Steve Fullerton)
Newsgroups: comp.lang.c,comp.lang.fortran
Subject: Re: fortran to C converter
Keywords: fortran,C,language,translator
Date: 13 Apr 89 15:33:37 GMT
Reply-To: scf@statware.UUCP (Steve Fullerton)
Organization: Statware, Corvallis, Oregon
In article <1992@csd4.milw.wisc.edu> zdenko@csd4.milw.wisc.edu (Zdenko Tomasic) writes:
>In article <158@np1.hep.nl> t19@np1.hep.nl (Geert J v Oldenborgh) writes:
>>Just out of curiosity, how are (double) complex variables translated to C?
>Consider C++, since it can define them as objects being object-oriented
>language.
Cobalt Blue, a company out of San Jose has 2 FORTRAN-to-C translator
products, FOR_C and FOR_C++. I have a copy of FOR_C and have seen demos
of FOR_C++. If you need to deal with complex variables, then take a
look at FOR_C++. The translation results in very readable code. FOR_C
also handles complex but the resulting code might be best described as
spaghetti, although it does a very nice job on other standard and
non-standard FORTRAN.
Their address and phone: Cobalt Blue
1683 Milroy, Suite 101
San Jose, CA 95124
408/723-0474
Just a satisfied customer.
Steve Fullerton Statware, Inc.
scf%statware.uucp@cs.orst.edu 260 SW Madison Ave, Suite 109
orstcs!statware!scf Corvallis, OR 97333
503/753-5382
==============================================================================
From: simons@think.com (Joshua Simons)
Newsgroups: comp.lang.c
Subject: RE: Fortran-to-C
Date: 27 Apr 90 14:19:13 GMT
Reply-To: simons@think.com (Joshua Simons)
Organization: Thinking Machines Corporation, Cambridge MA, USA
In article <10364@saturn.ucsc.edu> daniel@saturn.ucsc.edu (Daniel
Edelson) writes:
>Does anybody know of a Fortran to C translator that has
>successfully been used to translate a significant body
>of code?
Ask and ye shall receive.....
Source for f2c, a Fortran 77 to C translator jointly developed by
folks from Bell Labs, Bellcore, and Carnegie Mellon, is now freely
available.
F2c was derived from the original UNIX operating system's f77(1),
and the generated C follows f77's calling conventions; on some machines, the
resulting object files are interchangeable with (and behave
indistinguishably from) objects compiled by f77. The main "advantage" of
f2c is that it converts ANSI standard Fortran 77 into C without manual
intervention, at least when invoked by a suitable script or makefile (that
may need to exercise an f2c option to ensure that COMMON blocks are defined
just once). The main "problems" are that f2c does no code restructuring
(e.g., gotos are preserved) and that Fortran I/O gets converted into a bunch
of calls; thus the translated C code doesn't look too pretty, and in general
one would need to maintain the Fortran rather than its translation into C.
[F2c is not meant to displace the services of commercial vendors whose
business is to convert Fortran into maintainable C.]
There is a plethora of options, many of which exist to support
different compilation environments for the translated C (e.g., ANSI C or C++
compatability, different type sizes, separate files for COMMON blocks to
appease "smart" linkers). So far f2c (and f2c-generated source) has
compiled successfully on many machines: Sun, Vax, IBMRT, Apollo, SGI, MIPS,
and Cray to name a few.
F2c has been under test by the net community for over six months,
and has been verified on the NBS tests, several large math libraries,
floating point tests, even code for laying cable on the ocean floor!
To find about f2c, send the following E-mail message to netlib
(netlib@research.att.com or research!netlib):
echo send index from f2c | mail netlib@research.att.com
Your message will be answered automatically (by a program -- see CACM vol.
30 #5 (May, 1987), pp. 403-407). You will receive a reply explaining how to
automatically acquire f2c source (about 600K), f2c library source (130K),
and supporting info (man page, etc).
****************************** DISCLAIMER ******************************
Careful! Anything free comes with no guarantee.
************************************************************************
Mark Maimone phone: (412) 268 - 7698
Carnegie Mellon Computer Science email: mwm@cs.cmu.edu
cmcspt!mwm@cs.cmu.edu
Send compilers articles to compilers@esegue.segue.boston.ma.us
{spdcc | ima | lotus}!esegue. Meta-mail to compilers-request@esegue.
Please send responses to the author of the message, not the poster.
-josh simons
simons@think.com
thinking machines corporation
245 first street tel: 617.876.1111
cambridge, ma 02142-12114 fax: 617.876.1823
[[ A friend (Hans Christian Nielsen of Sysdeco, Oslo) has used the
Bellcore/Carnegie Mellon f2c package on a major project (about
100 000 lines of FORTRAN), and was happy with it. He reported
that the C code did compile and work on an Apollo running Unix.
He also confirmed that the C was unreadable and unmaintainable,
and that they had to stick to maintaining the FORTRAN.
- gisle h. ]]
==============================================================================
From: henry@zoo.toronto.edu (Henry Spencer)
Newsgroups: comp.lang.fortran,comp.lang.c,comp.unix.questions
Subject: Re: the f2c program
Date: 12 Aug 90 00:58:36 GMT
Organization: U of Toronto Zoology
In article <1990Aug11.202542.9891@ux1.cso.uiuc.edu> mcdonald@aries.scs.uiuc.edu (Doug McDonald) writes:
>On the computer research.att.com is a program called "f2c". It converts
>Fortran programs to, mostly, C. But it does NOT convert Fortran IO
>calls to C. Instead it just invokes some mysterious io routines. I
>take these to be somebody's Fortran IO runtime library... whose will this
>thing work with????
Also on research.att.com, in the same directory, are files named "libF77.Z"
and "libi77.Z", which might be worth investigating.
It is not possible to both understand | Henry Spencer at U of Toronto Zoology
and appreciate Intel CPUs. -D.Wolfskill| henry@zoo.toronto.edu utzoo!henry
==============================================================================
From: pockrand@cs.umn.edu (Mitch Pockrandt)
Newsgroups: comp.lang.c
Subject: FORTRIX-C comments and experience needed
Keywords: c conversion tools fortrix sun rapitech
Date: 10 Aug 90 17:45:59 GMT
Followup-To: comp.lang.fortran
Organization: University of Minnesota, Minneapolis - CSCI Dept.
I first posted this to comp.lang.fortran and then later realized I
might find some people here familiar with FORTRIX-C. If you have any
$.02 about that fortran to c conversion product, I would love to hear
from you. (Email prefered or followup to comp.lang.fortran, thanks!)
*** DUCK. It's another post about fortran to c convertors! ****
Actually, it isn't quite that general. Don't bother telling me about
f2c; I read about it earlier in this group and will be chasing it down
shortly. However, I have been requested (by my employer) to elicit
opinions, recommendations, and/or warnings from anyone out there who
has used the _FORTRIX-C_ conversion program for Unix (and specifically
Sun workstations) by Rapitech Systems, Inc.
Some of our specific concerns include compatibility with F77 on Unix,
and ability to efficiently handle floating point formats (which I
suspect will just be: don't do anything that keeps us from using
-68881 and similar floating point optimization switches.)
E-mail replies. If anyone expresses an interest I will post a summary
in a week or two.
Thanks! Mitch
Mitchell S. Pockrandt - Computer Science Dept. - University of Minnesota
Internet: pockrand@cs.umn.edu
UUCP : ...!rutgers!umn-cs!pockrand
Bitnet : pockrand%cs.umn.edu@UMNACVX.BITNET
==============================================================================
--
Disclaimer: The opinions expressed herein are not necessarily those of my
employer, not necessarily mine, and probably not necessary.
- gisle hannemyr (Norwegian Computing Center)
EAN: C=no;PRMD=uninett;O=nr;S=Hannemyr;G=Gisle (X.400 SA format)
gisle.hannemyr@nr.no (RFC-822 format)
Inet: gisle@ifi.uio.no
UUCP: ...!mcsun!ifi!gisle
------------------------------------------------