[net.unix-wizards] C to Fortran translator needed

cwc@uw-june (02/24/84)

Does anyone know where I can get a C to Fortran (or C to Ratfor) 
translator?  It wouldn't have to do the hard things like pointers
and structures.

Thanks in advance.

usenet@abnjh.UUCP (usenet) (02/28/84)

While we are on the subject of vain hopes, does anybody have a
translator that goes the other direction?  That is, is there a Ratfor
to C translator anywhere?
Failing that, does anybody have a Ratfor compiler for the Intel 8088
or one of its cousins.  A cross compiler running on a VAX generating
code for the 8088 would be OK too.

Thanks in advance,
Rick Thomas
ihnp4!abnji!rbt   or   ihnp4!abnjh!usenet
(201)-560-6565

johnston%lbl-csam@sri-unix.UUCP (03/09/84)

From:  (Bill Johnston [csam])johnston@lbl-csam

Using RATFOR as a C to FORTRAN translator substitute will certainly only be
useful if the original C code was isomorphic to FORTRAN,
since RATFOR has the data structures of FORTRAN, not C.

Reguarding RATFOR on an 8088 system, there is a small outfit in El Cerrito, CA
(Carousel Microtools, 609 Kearney St., 415/528-1300 - no relation to me, address
provided for information only) which supplies a complete set of
the Software Tools (a much expanded version of the original
Kernighan and Plauger set).
Carousel's offering includes all of the primitives (as binary),
the shell, RATFOR processor, editor, etc. (as source)
for a variety of microcomputer systems, including MS/PC DOS.
(I believe that some, if not all, of the more sophisticated primitives, like
the dynamic memory allocators, depend upon a particular FORTRAN compiler
(Microsoft, I believe).)

For anyone who cannot run UNIX on their 8086/8088 system, the
Software Tools provide a lot of UNIX style functionality.

   Bill [johnston@lbl-csam]

dpm@Lbl-Csam.ARPA (04/04/84)

From:  (Dave Martin [stug])dpm@Lbl-Csam.ARPA

If you have access to an MS-DOS system with the Microsoft Fortran
compiler try:

	Carousel Microtools 415-528-1300

They have a modern RatFor preprocessor as well as an MS-DOS runtime
system for the Software Tools virtual machine.

For a cross-translator(which generates ANSI Fortran as its output)
for a VAX running VMS try the LBL/Hughes Software Tools package
available through either DECUS (VAX SIG symposia tapes) or:

	Software Tools Users Group
	1259 El Camino Real #242
	Menlo Park, CA  94025

The generated code should be usable with any 8086 Fortran compiler.