Date : Sun, 24 Jul 1983 18:56:55-PDT (Sun)
From : harpo!seismo!rochester!ritcv!tropix!rcm@ucb-vax
Subject: Re: Pascal to C
I'm posting what should be a reply by mail because I don't know how to
get through an ARPA gateway to the originator.
---------
Yes, there is a Pascal-to-c translator, available from Whitesmith's.
It is written in their version of c, and the source is available.
It produces super-slow c, but is acceptable in a pinch. The program is
small and attempts to put loop control into register variables.
The resulting code is poor because:
1) It is unreadable. No c variables are retained by their origonal
names.
2) The referencing if enclosing proceedure's variables (so casually
done in Pascal) is ineffecient.
But it does work. In many cases, that's all that matters.
Bob Moore
GCA/Tropel
seismo!rochester!ritcv!tropix!rcm