Newsgroups: comp.archives Path: utzoo!news-server.csri.toronto.edu!ox.com!emv From: tml@tik.vtt.fi (Tor Lillqvist) Subject: [wanted...] Re: WANTED: Pascal to C translator Message-ID: <1991Mar6.015927.16795@ox.com> Followup-To: alt.sources.wanted Sender: emv@ox.com (Edward Vielmetti) Reply-To: tml@tik.vtt.fi (Tor Lillqvist) Organization: Technical Research Centre of Finland, Laboratory for Information References: <1991Mar1.124857.28326@fwi.uva.nl> Date: Wed, 6 Mar 1991 01:59:27 GMT Approved: emv@ox.com (Edward Vielmetti) X-Original-Newsgroups: alt.sources.wanted,alt.sources Archive-name: languages/pascal/ptc/1991-03-04 Archive-directory: tik.vtt.fi:/pub/ptc/ [130.188.52.2] Original-posting-by: tml@tik.vtt.fi (Tor Lillqvist) Original-subject: Re: WANTED: Pascal to C translator Reposted-by: emv@ox.com (Edward Vielmetti) In article <1991Mar1.124857.28326@fwi.uva.nl> smagt@fwi.uva.nl (Patrick van der Smagt) writes: I'm looking for a program that can translate Pascal to C source code, pref. running under UNIX (sun4). Any help would be very much appreciated. There are two Pascal-to-C translators freely available that I know of. One is called ptc, was written by Per Bergsten, and posted back in 1987, probably to what was called mod.sources then (?). I have a somewhat enhanced version available for ftp here, in tik.vtt.fi:pub/ptc. You might find the originally posted version, plus a set of patches, from your favorite archive site. Ptc handles standard Pascal, with some small extensions. Then there is p2c by Dave Gillepsie, posted to comp.sources.unix last year (Volume 21, Issues 46--77 (yes, 32 parts)). It has more features, for example handles HP Pascal extensions (probably of no use to you). P2c should be available at various archive sites. I have used ptc successfully to compile TeX, and can recommend it. P2c also seems to be well written and tested, but I haven't used it. -- Tor Lillqvist, working, but not speaking, for the Technical Research Centre of Finland