Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!psuvax1!gondor.psu.edu!schwartz From: schwartz@gondor.psu.edu (Scott E. Schwartz) Newsgroups: comp.lang.pascal,comp.lang.c Subject: Re: Pascal to C translator wanted Message-ID: <2963@psuvax1.psu.edu> Date: Fri, 25-Sep-87 16:27:14 EDT Article-I.D.: psuvax1.2963 Posted: Fri Sep 25 16:27:14 1987 Date-Received: Sun, 27-Sep-87 02:11:17 EDT References: <371@m10ux.UUCP> Sender: netnews@psuvax1.psu.edu Reply-To: schwartz@gondor.psu.edu (Scott E. Schwartz) Organization: Penn State University, University Park, PA Lines: 19 Xref: mnetor comp.lang.pascal:321 comp.lang.c:4538 In article <371@m10ux.UUCP> rgr@m10ux.UUCP (Duke Robillard) writes: >We have some Pascal code (about 12,000 lines) that we wish were >C (so we could have the same source for Suns, VAX/UNIX, Amdahl/UTS, >and Cray machines). ... > Has anyone used >anything else to translate Pascal to maintainable C? There was a pascal to C translator posted to comp.sources.unix (I think) a few months ago. I have played with is some, but only to test it out. I seems to do a good job, except for a bug involving passing pointers to records as var parameters (easily fixed) and a dubiously implemented set of pascal i/o macros (some of the i/o stuff is just dead wrong.) The program is about 200K of pascal source. You can probably get it from the comp.sources.unix archives. -- Scott Schwartz schwartz@gondor.psu.edu