Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: $Revision: 1.6.2.16 $; site inmet.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!inmet!tower From: tower@inmet.UUCP Newsgroups: net.lang Subject: Re: Orphaned Response Message-ID: <4700027@inmet.UUCP> Date: Tue, 14-Jan-86 21:19:00 EST Article-I.D.: inmet.4700027 Posted: Tue Jan 14 21:19:00 1986 Date-Received: Thu, 23-Jan-86 21:18:44 EST References: <20@hplabsc.UUCP> Lines: 192 Nf-ID: #R:hplabsc:-2000:inmet:4700027:177600:6602 Nf-From: inmet!tower Jan 14 21:19:00 1986 Subject: Re: Wanted: Pascal to C Translator Newsgroups: net.lang.c,net.lang.pascal,net.lang Distribution: net References: <20@hplabsc.UUCP> > Looking for a public domain Pascal to C source code translator, > preferably written in C. If anyone has one or knows where to > get one, I would appreciate a private mail message. > > > Arvind Kumar > ...!hplabs!kumar I asked this question on USENET 4 months ago. No one knew of any public domain translators, though several commercially available translators were reported. The informative answers I received follow: Len Tower ---------------------------------------------------------------------- Date: Fri, 13 Sep 85 07:53:10 pdt From: hans@aids-unix (Hans Muller) To: tower@mit-hermes.ARPA Subject: A Pascal to C translator I picked this up off the net a few months ago. I would appreciate it if you would forward any new replies you receive. >From info-c-request@BRL.ARPA Mon Jun 17 22:48:13 1985 Relay-Version: version B 2.10.2 9/18/84; site aids-unix.ARPA Posting-Version: version B 2.10.2 9/18/84; site aids-unix.ARPA Path: aids-unix!info-c-request@BRL.ARPA From: info-c-request@BRL.ARPA Newsgroups: info-c Subject: Re: Pascal to C translator Message-ID: <5183@aids-unix.ARPA> Date: 18 Jun 85 05:48:13 GMT Article-I.D.: aids-uni.5183 Posted: Mon Jun 17 22:48:13 1985 Date-Received: 18 Jun 85 05:48:13 GMT Sender: daemon@aids-unix.ARPA Organization: AI&DS Lines: 32 From: Sean McLinden In article <415@yale.ARPA> stock@yale.ARPA writes: >I am looking for a Pascal to C translator, or any tools that might help >in translating Pascal source code to C source code. Please sent me >any suggestions, sources, or information that you might have to make >this task easier. > >Adam Stock at Yale Comix The CMU Andrew System which is a product of the IBM-sponsored Information Technology Center at Carnegie-Mellon University includes, among other things, a Pascal-to-C translator called "ptc". The system (which is a prototype of the user interface intended for IBM academic workstation), can be licensed to universities for $100.00 (I don't know about commercial interests) from CMU. The phone number is (412)-578-6700. For anyone with a Sun Workstation, this system is WELL worth the investment as it offers an efficient and clean working environment for interacting between networked Suns. (This in comparison to Sun Unix 4.2 Release 1.1, I haven't seen later releases, yet). To return to the Pascal-to-C issue, for a moment, it is worth stressing the fact that the large number of Pascal dialects makes it difficult to develop a general purpose translator, and some post-processing may be required with the translator, however, it has made life a lot easier for me since I rarely use Pascal enough to make it worth my while to delve into the syntax. Sean McLinden Decision Systems Laboratory Hans Muller hans@aids-unix.ARPA phone: (415) 941-3912 ---------------------------------------------------------------------- From: ihnp4!utzoo!hcrvax!hcrvx2!bobk@mit-eddie Date: 15 Sep 85 13:20:53 CDT (Sun) Subject: Re: pascal -> C translator Apparently-To: allegra!mit-eddie!mit-hermes!tower HCR sells a product called HCR/PASCAL. HCR/PASCAL is a Pascal compiler that uses C as an intermediate language. It first performs a direct translation from J&W/ANSI/ISO (level 0) Pascal to C, and then invokes the system's C compiler to complete the compilation. HCR/PASCAL allows modules to be compiled separately , it uses "Lazy I/O" and it provides a UNIX-style implementation of the UCSD string package. HCR/PASCAL has numerous UNIX-style features which include: 1) the ability to call and be called by C routines 2) the ability to integrate Pascal and C routines into runtime libraries 3) the ability to perform UNIX system calls 4) the use of the cpp macro preprocessor in Pascal programs 5) user-friendly file-handling capabilities 6) the handling of command line arguments It can even be used to translate Pascal into C if you want to throw away your Pascal source. HCR/PASCAL is available on a wide range of hardware that runs UNIX since it is written in C and since the compiler's code-generator never needs to be rewritten for new machines. HCR/PASCAL is currently available on the following hardware: IBM PC/AT, AT&T 3B2, AT&T 3B5, AT&T 3B20, PDP-11/xx, VAX-11/7xx, Intel 8086, Intel 80286/310, Perkin-Elmer, Pixel, Plexus, 68000 NCR Tower and 68010 NCR Tower. HCR/PASCAL is currently available on the following versions of UNIX: System Vr1, System Vr2.0, BSD 4.1, BSD 4.2, System III, Version 7, Xenix 2.0, Xenix 3.0, VMS/UNITY 3.0 and VMS/UNITY 4.0 Customer support for HCR/PASCAL is provided by HCR Corporation's competent support staff. For further information, you can contact me at the following address / phone number / net address: Bob A. Kyryliuk HCR/PASCAL Product Manager Human Computing Resources Corporation 10 St. Mary Street Toronto, Ontario, M4Y 1P9 Canada 416-922-1937 ext.25 ...{decvax|utzoo|ihnp4|watmath}!hcr!bobk or you may contact Emil Rapp in our California Sales Office at the following address / phone number: Emil Rapp Human Computing Resources Corporation 34700 Coast Highway Capistrano Beach, California 92624 714-493-8664 ---------------------------------------------------------------------- Date: Mon, 16 Sep 85 10:51:47 cdt From: harvard!uwvax!wisc-gumby.arpa!g-chapma@mit-eddie (Ralph chapman) To: harvard!think!mit-eddie!mit-hermes!tower@mit-eddie Subject: Re: pascal -> C translator In-Reply-To: your article <2479@mit-hermes.ARPA> Check with Whitesmiths (don't know their address, sorry-- somewhere in New York, though). They make a cheap C compiler for various minicomputer (PDP-11) operating systems. Their implementation of PASCAL originally (I don't know if it's still the same) involved translating PASCAL to C, then compiling the C code. [Len Tower's note: Whitesmiths is in Concord, MA] ---------------------------------------------------------------------- Date: Fri, 13 Sep 85 21:22:23 edt From: harvard!encore!wegrzyn@MIT-PREP.ARPA (Chuck Wegrzyn) Message-Id: <8509140122.AA29525@encore.UUCP> To: talcott!harvard!seismo!brl-tgr!tgr!tower@mit-prep.ARPA Subject: Re: unix sources archive Newsgroups: net.sources In-Reply-To: <1432@brl-tgr.ARPA> Organization: Encore Computer Corp., Wellesley Hills, MA Len, Sorry. but in the four or five years I have been on the network, no one has ever posted a Pascal to C converter. At this time the only company that sells one is Whitesmith in Lexington (or Concord??). Chuck