Xref: utzoo alt.sources.wanted:1005 alt.sources:3399 Path: utzoo!utgpu!cs.utexas.edu!sdd.hp.com!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!kth.se!hemuli.tik.vtt.fi!tik.vtt.fi!tml From: tml@tik.vtt.fi (Tor Lillqvist) Newsgroups: alt.sources.wanted,alt.sources Subject: Re: WANTED: Pascal to C translator Message-ID: Date: 4 Mar 91 23:17:53 GMT References: <1991Mar1.124857.28326@fwi.uva.nl> Sender: news@hemuli.tik.vtt.fi Followup-To: alt.sources.wanted Organization: Technical Research Centre of Finland, Laboratory for Information Processing (VTT/TIK) Lines: 24 In-reply-to: smagt@fwi.uva.nl's message of 1 Mar 91 12:48:57 GMT 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