[comp.lang.c] Fortran to C translator

jacobo@megatest.UUCP (Jacobo Bulaevsky) (06/03/87)

    I am looking for information and or pointers on translators from
    Fortran to C.  I know there are some out there.  Your information
    will be greatly appreciated, specially if you've used any of them.
    Please mail directly to me and thanks in advance,

						Jacobo Bulaevsky
-- 
UUCP:   {decwrl, sun, fortune, pyramid, ubvax, amd} !megatest!jacobo
USMAIL: Megatest; 880 Fox Lane; San Jose, Ca 95131
PHONE:  (408)437-9700 x 3171

jty@tut.fi (Nokari) (06/09/87)

In article <1529@megatest.UUCP> jacobo@megatest.UUCP (Jacobo Bulaevsky) writes:
>    I am looking for information and or pointers on translators from
>    Fortran to C.

We have such a product, called C-77.
It accepts ANSI standard Fortran-77, MIL STD extensions
and some VAX/VMS and HP extensions, and produces Kernighan-Ritchie C.
No manual translation is needed.
For more information, contact c77@intrin.UUCP-- 
Jyrki Yli-Nokari
Intrinsic, Ltd.  ---  "The creators of C-77, The Fortran-to-C translator"
jty@intrin.FI  - or -  YLI@FINTUTA.BITNET

lui@CS.UCLA.EDU (03/22/88)

Does anyone know if a Fortran to C translator exists? Please answer
via E-Mail since I don't subscribe to this newsgroup.


	Stephen Lui

	ARPA:  lui@cs.ucla.edu
	UUCP:  ...!{cepu,ihnp4,trwspp,ucbvax}!ucla-cs!lui

rob@kaa.eng.ohio-state.edu (Rob Carriere) (08/14/88)

If you live on a PC and have money ($750), there's a program called
FOR_C by Cobalt Blue, 1683 Milroy, Ste 101, San Jose, CA 95124,(408)723-0474

I have no relation with Cobalt Blue, nor have I used this (or any
other) product of theirs.  I am copying this info out of an ad in
Computer Language, July 88, pg 129.

Rob Carriere

markd@proxftl.UUCP (Mark Davidson) (08/15/88)

In article <469@accelerator.eng.ohio-state.edu> rob@kaa.eng.ohio-state.edu (Rob Carriere) writes:
>
>If you live on a PC and have money ($750), there's a program called
>FOR_C by Cobalt Blue, 1683 Milroy, Ste 101, San Jose, CA 95124,(408)723-0474
>
>I have no relation with Cobalt Blue, nor have I used this (or any
>other) product of theirs.  I am copying this info out of an ad in
>Computer Language, July 88, pg 129.
>
>Rob Carriere

There is another FORTRAN to C translator available called PROMULA.FORTRAN
available from PROMULA Development Corporation, 3620 N. High Street,
Suite 301, Columbus, Ohio 43214, (614) 263-5512; Like the product mentioned
above, this is only if you live on a PC.  Cost: $450

Also, I have no relationship with PROMULA Development.  However, I have used
both FOR_C and PROMULA.FORTRAN and think of PROMULA.FORTRAN highly.
-- 
---
  In real life: Mark E. Davidson       uflorida!novavax!proxftl!markd
  Proximity Technologies, 3511 NE 22nd Ave, Ft. Lauderdale FL, 33308
  #define STANDARD_DISCLAIMER          <Quote construction site>

prasad@csli.STANFORD.EDU (Prasad Akella) (08/17/88)

In article <469@accelerator.eng.ohio-state.edu> rob@kaa.eng.ohio-state.edu (Rob Carriere) writes:
>
>If you live on a PC and have money ($750), there's a program called
>FOR_C by Cobalt Blue, 1683 Milroy, Ste 101, San Jose, CA 95124,(408)723-0474
>

	ANy info on translators for workstations (sun3/microvax II's)?

thanks
-prasad

disd@hubcap.clemson.edu (BJ Backitis) (07/25/89)

Anyone know of an animal of this species for VAX VMS or PC DOS ?
Any help will be greatly appreciated.
 
Thanks in advance.....
 
Austin Swift
ISD, Clemson Univ.
Ph. (803)656-2036
-- 
Father of Kathryn Leigh Heffelfinger ------ disd@hubcap.clemson.edu
          ^^^^^^^ ^^^^^ ^^^^^^^^^^^^
10 lbs, 3 ozs, 22 3/8" and 6 weeks of love.  

gjc@bu-cs.BU.EDU (George J. Carrette) (07/25/89)

I know of a FORTRAN->LISP translator which was developed at MIT to
run the IMSL package under Macsyma. Then there is Kyoto Common Lisp,
which uses a LISP->C translator. Hence FORTRAN->LISP->C.
-gjc

Wiley_M_Sanders@cup.portal.com (07/27/89)

An outfit called:
   Cobalt Blue
   2940 Union, Suite C
   San Jose, CA 95124
   (408)723-0474
   FAX: (408)377-7648
Sells a Fortran to C and Fortran to C++ (!) converter.
I don't know anything about the product other than I called the
 phone number, spoke with a person, and was sent their info.
Unfortunately, the info fails to mention whether the product is available
for VMS or Ultrix. MSDOS and 386 Unix version are mentioned, but the
thing is shipped with source.
Good Luck!
-w

daniel@saturn.ucsc.edu (Daniel Edelson) (01/19/90)

Does anybody know of a Fortran to C translator that has 
successfully been used to translate a significant body
of code?

If anyone does not of such a beast, I'd greatly appreciate
an email response since I don't regularly read this newsgroup.

Thank you in advance,

daniel

daniel@cis.ucsc.edu

darcy@druid.uucp (D'Arcy J.M. Cain) (01/22/90)

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?
>
>If anyone does not of such a beast, I'd greatly appreciate
>an email response since I don't regularly read this newsgroup.
>
I have been waiting patiently for someone to post the answer to this
question rather than waste bandwidth asking the same question that seems
to get asked every week.  I REGULARLY READ THIS NEWSGROUP and don't just
jump in when I need something.  Will someone please *post* the answer
to this question.

We now return you back to your regularly scheduled flames.


-- 
D'Arcy J.M. Cain (darcy@druid)     |   Thank goodness we don't get all 
D'Arcy Cain Consulting             |   the government we pay for.
West Hill, Ontario, Canada         |
No disclaimers.  I agree with me   |

ilan343@violet.berkeley.edu (01/22/90)

In article <1990Jan21.183457.15676@druid.uucp> darcy@druid.UUCP (D'Arcy J.M. Cain) writes:
>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?

This is just a hint.  There is currently Fortran-to-C conversion
package being developed by the people that manage the NETLIB.

I found the following entry in the NETLIB general index:

*  notes on the Fortran-to-C converter  (netlib@research.att.com only)
	send index for f2c

Does anyone know what "f2c" is about?

mcdonald@aries.scs.uiuc.edu (Doug McDonald) (01/22/90)

In article <1990Jan21.183457.15676@druid.uucp> darcy@druid.UUCP (D'Arcy J.M. Cain) writes:
>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?
>>
>>If anyone does not of such a beast, I'd greatly appreciate
>>an email response since I don't regularly read this newsgroup.
>>
>I have been waiting patiently for someone to post the answer to this
>question rather than waste bandwidth asking the same question that seems
>to get asked every week.  I REGULARLY READ THIS NEWSGROUP and don't just
>jump in when I need something.  Will someone please *post* the answer
>to this question.
>
>We now return you back to your regularly scheduled flames.
>

Yes, I know of such a thing.

Me.

:-) , but the above is a perfectly correct, accurate and true answer to
the question.

Doug McDonald

ralphc@tekcae.CAX.TEK.COM (Ralph Carpenter) (01/23/90)

In article <1990Jan21.183457.15676@druid.uucp>, darcy@druid.uucp (D'Arcy J.M. Cain) writes:
> 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?
> >
> >If anyone does not of such a beast, I'd greatly appreciate
> >an email response since I don't regularly read this newsgroup.
> >
> I have been waiting patiently for someone to post the answer to this
> question rather than waste bandwidth asking the same question that seems
> to get asked every week.  I REGULARLY READ THIS NEWSGROUP and don't just
> jump in when I need something.  Will someone please *post* the answer
> to this question.
> 
> We now return you back to your regularly scheduled flames.
> 
> 
> -- 
> D'Arcy J.M. Cain (darcy@druid)     |   Thank goodness we don't get all 
> D'Arcy Cain Consulting             |   the government we pay for.
> West Hill, Ontario, Canada         |
> No disclaimers.  I agree with me   |

What follows is a copy of email I sent to Daniel Edelson:

I have an acquaintance of many years that translated a very
large finite element program and element library from fortran to C,
approximately 100,000 fortan source lines, successfully.  He used
FOR_C, running on DOS systems. The translated code runs on all sorts
of systems, microVaxes included.

The address and phone I have for the publisher of FOR_C is:
	Cobalt Blue
	2940 Union Ave
	Suite C
	San Jose, Ca. 95124
	Tel. (408) 723-0474
	Fax. (408) 377-7648

The address and phone of a distributor (less expensive, mail order source)
	The Programmer's Connection
	7249 Whipple Ave NW
	North Canton, OH 44720-7137
	Tel. (800) 336-1166
	Fax. (216) 494-5260

The price from the Programmer's Connection, including surface UPS shipping is
$442 with binary runtime, ($575 list).
$673 with runtime sources, ($875 list).

The above info. is from the Winter 1990 catalog, which I just recieved, so
should be current.

The Cobalt Blue people will send you a demo disk for about $10.  The demo
is a crippled version that will convert a subroutine from fortran to c as
long as the input is 1k char or less.

If you have any good or bad experiences to share along the way, please keep me
informed.  I have a year old demo that generated pretty good code.

One additional note.  I recently purchased a very nice package of fortran
clean up utilities from: Quibus Enterprises, 106 N. Draper Ave., 
Champaign, IL 61821, Phone (217) 356-8876, for about $139.  They work very
well, and are very quick.  So far as I can tell, they are bug free.

Ralph Carpenter
Tektronix, Inc.
Beaverton, OR.

robert%odin@swanee.ee.uwa.oz.au (Roberto Togneri) (09/13/90)

I know that a Pascal to C translator exists but does anybody know of
a Fortran to C translator? Although we don't program in fortran there are
some numerical algorithms written in fortran we'd like translated to C.
Also fortran handles complex arithmetic so a translator smart enough
to do that would also be useful.

If anybody knows of any site which holds sources (in C!) or even a
commercial package I would be grateful for the info. 

Thanks in advance,
robert

P.S. please note that we are able to do anon ftp. You can reply to
me from the news reader or email as shown below (if my signature comes up!).
--
Dr. Roberto Togneri		
Dept. of EE Engineering                 EMAIL: robert@swanee.ee.uwa.oz.au
The University of Western Australia     INTERNET: robert@zeus.ee.uwa.oz.au

mwm@a.gp.cs.cmu.edu (Mark Maimone) (09/13/90)

	Since there have been several requests for a Fortran to C translator
in the past week, I'm reposting the announcement about f2c.  The short
answer is you can get f2c by anonymous-ftp from research.att.com in
directory dist/f2c.

------------------------------------------------------------------------------

	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 a year
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 out about f2c, send the following E-mail message to netlib
(netlib@research.att.com or research!netlib):

	send index from f2c

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).  Or you can anonymous-FTP to
research.att.com and look in directory dist/f2c at these files:

	all.Z -- 250K compressed shar file for f2c
	f2c.ps.Z -- 24 page tech report describing f2c
	index -- general info about files
	libf77.Z, libi77.Z -- compressed shar files for libraries

****************************** 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
-- 
----------------------------------------------------------------------
Mark Maimone				phone: (412) 268 - 7698
Carnegie Mellon Computer Science	email: mwm@cs.cmu.edu
grad student, vocal jazz and PDQ Bach enthusiast