Related articles |
---|
C to pascal, just this once gcowley@cableone.net (Gary Cowley) (2000-08-05) |
Re: C to pascal, just this once derekNOSPAM@knosof.co.uk (2000-08-10) |
Re: C to pascal, just this once snicol@apk.net (Scott Nicol) (2000-08-10) |
Re: C to pascal, just this once franck.pissotte@online.fr (Franck Pissotte) (2000-08-10) |
Re: C to pascal, just this once juliocr@home.com (Julio C. Rincon) (2000-08-13) |
Re: C to pascal, just this once derek@knosof.co.uk (2000-08-13) |
From: | Scott Nicol <snicol@apk.net> |
Newsgroups: | comp.compilers |
Date: | 10 Aug 2000 00:06:08 -0400 |
Organization: | APK Net |
References: | 00-08-040 |
Keywords: | C, Pascal, translator |
Gary Cowley wrote:
> I have a one-time requirement to convert some c-source to pascal.
If its not too many lines, I'd just convert it by hand. There are a
few problems with machine translations. First, there are two major
dialects of C (K&R and ANSI) and about a dozen dialects of PASCAL
(ANSI standard, ANSI extended, Digital, Borland, MPW, ...), so you'll
need a translator that performs the correct translation. Second,
although C and PASCAL are superficially similar, there are a lot of
details that are different (pointers, static initialization, ...).
In other words, unless you have hundreds of thousands of lines of
code to translate, you'll probably spend more time tracking down a
translator and then dealing with its bugs than if you just bit the
bullet and translated by hand.
> I haven't programmed in C for almost 15 years so rusty is +not+ the
> word.
>...
> I'd appreciate some help. I don't want it to cost an arm and a leg
OK, so you might not be able to hand-translate yourself. How about
hiring a CS student?
--
Scott Nicol
snicol@apk.net
Return to the
comp.compilers page.
Search the
comp.compilers archives again.