Pascal to C Conversion

Gary Sarff gsarff at meph.UUCP
Fri Feb 9 11:53:09 AEST 1990


In article <4007 at cbnewsl.ATT.COM>, feg at clyde.ATT.COM (Forrest Gehrke,2C-119,7239,ATTBL) writes:
>In article <3576 at garth.UUCP>, phipps at garth.UUCP (Clay Phipps) writes:
>> We are also looking for an automatic Pascal-to-C source-code converter.
>> >
>> >In your reply, please indicate the source for the converter, 
>> >price (if applicable), 
>> >any positive / negative experience you may have, 
>> >and language flavors supported.
>
>You will find a fairly good translator on SIMTEL20 archives
>under MSDOS.C directory which was put out by Microsoft
>a couple of years ago.  T2C.ARC   152K bytes
>
>Its specially configured to translate TurboPascal to MSC, natch.
>
>Although any of the these Pascal-C translators can handle 
>most of the job, none of them can unravel Pascal's nested
>functions.  The translators leave that task to humans.
>

I have one that does do nested procedures and functions.  It came off of
usenet a few years ago (2,3?) in comp.sources.unix I believe.  It is in
Pascal, (there was a C version posted, which was the pascal version run on
itself), and produced pretty bizarre looking code compared to what p2c
produces, but it did do nested procedures, variant records, pascal I/O, etc.



More information about the Comp.lang.c mailing list