ACB.TYM%office-2@sri-unix.UUCP (07/20/83)
Someone asked me about a PASCAL to C translator. Does such a thing exist? Please reply to Bomberger@office-3.
rcm@tropix.UUCP (Robert C. Moore) (07/25/83)
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