### Question 20.26

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

Several freely distributable programs are available:

- p2c 8 A Pascal to C converter written by Dave Gillespie, posted to comp.sources.unix in March, 1990 (Volume 21); also available by anonymous ftp from csvax.cs.caltech.edu, file pub/p2c-1.20.tar.Z .
- ptoc Another Pascal to C converter, this one written in Pascal (comp.sources.unix, Volume 10, also patches in Volume 13?).
- f2c A FORTRAN to C converter jointly developed by people from Bell Labs, Bellcore, and Carnegie Mellon. To find out more about f2c, send the mail message ``send index from f2c'' to netlib@research.att.com or research!netlib. (It is also available via anonymous ftp on netlib.att.com, in directory netlib/f2c.)

This FAQ list's maintainer also has available a list of a few other commercial translation products, and some for more obscure languages.

See also questions 11.31 and 18.16.

Read sequentially: prev next up top

This page by Steve Summit // Copyright 1995 // mail feedback