home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!batcomputer!cornell!uw-beaver!news.tek.com!psgrain!m2xenix!puddle!f590.n139.z1.fidonet.org!Sean.Wilson
- From: Sean.Wilson@f590.n139.z1.fidonet.org (Sean Wilson)
- Sender: ufgate@puddle.fidonet.org (newsout1.26)
- Newsgroups: comp.lang.modula2
- Subject: Re: C to Modula2 convert
- Message-ID: <36835.2B518BA9@puddle.fidonet.org>
- Date: Thu, 07 Jan 93 11:45:20 PDT
- Organization: FidoNet node 1:139/590 - PMI BBS, Green Bay WI
- Lines: 33
-
- TC> There is a C to Pascal written by a small UK based company and there is a
- TC> shareware version (it's quite old). This program seems to work (I don't have a
- TC> useable Pascal compiler!). Output was not a pretty sight -- forgivable under
- TC> the circumstances.
- TC> The company owner/software author has read papers fairly recently which imply
- TC> to me that he is still active. On speaking to him he indicated that he could
- TC> indeed do a C to M2 but wouldn't unless someone commissions the job. (this may
- TC> be because the C to Pascal has not made money)
- TC> I don't have that kind of money to burn.
-
- Knowledge Software's C to Pascal translator was written as an advertisement
- I believe. It is an impressive program that appears to do an arbitrary
- number of passes over the input to determine the Pascal code.
-
- I believe that the C to Modula-2 translator would be very similar, however
- I also beleive that in many cases it would be impractical. Many C programs
- use the preprocessor to modify the code that will be seen by the compiler
- depending on various manifest constants or definitions. Given the various
- possibilities about the way in which the preprocessor can be used I suspect
- that there are many programs out there which cannot easily be translated
- once off into Modula-2.
-
- Best Regards
- Sean Wilson
- (TopSpeed Technical Support)
-
- ___
- X PQ-Under-Trial 2.15 X Unable to locate Coffee -- Operator Halted!
-
-
- --
- uucp: uunet!m2xenix!puddle!139!590!Sean.Wilson
- Internet: Sean.Wilson@f590.n139.z1.fidonet.org
-