[net.lang.c] Pascal to C conversion

Schauble@MIT-MULTICS.ARPA (Paul Schauble) (08/11/86)

I believe this has been discussed before, but my archives don't go back
far enough.

I have been given a program to make extensions and modifications to. It
is presently about 1 megabyte source, wrtten in Digital Research Pascal.

This Pascal compiler is the old CP/M MT Pascal converted to MS-DOS. It
is no longer supported. I am therefore forced to move it to another
compiler and would like to consider moving to C. For this to be
practical, much of the conversion would have to be done mechanically.

I recall a discussion a while back about Pascal to C converters.
Unfortunately, my archives don't go back far enough. I would greatly
appreciate hearing about programs to do this translation, and would
particularly appreciate comments from anyone who has actually used one.

          Thanks,
          Paul 
          Schauble at MIT-Multics.arpa

daveh@cbmvax.cbm.UUCP (Dave Haynie) (08/11/86)

> 
> I recall a discussion a while back about Pascal to C converters.
> Unfortunately, my archives don't go back far enough. I would greatly
> appreciate hearing about programs to do this translation, and would
> particularly appreciate comments from anyone who has actually used one.
> 
>           Thanks,
>           Paul 
>           Schauble at MIT-Multics.arpa

I used one in a job I had long ago at the CMU EE department.  I believe it
was developed there as well.  The program would translate most of the 
function/procedure calls, operators, types, etc.   It did have a problem
resolving the several nested levels of WITH statements that our Pascal
code had in it.  Probably the best thing to do would be to contact the
CMU EE Department, Schenley Park, Pittsburgh, PA 19380, in reference to
this code, which may still exist, and if it does, probably in better form
than it did in '82.

-- 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Dave Haynie    {caip,ihnp4,allegra,seismo}!cbmvax!daveh

	"I gained nothing at all from Supreme Enlightenment, and
	 for that very reason it is called Supreme Enlightenment."
							-Gotama Buddha

	These opinions are my own, though for a small fee they be yours too.
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/