home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / modula2 / 1649 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.0 KB

  1. 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
  2. From: Sean.Wilson@f590.n139.z1.fidonet.org (Sean Wilson)
  3. Sender: ufgate@puddle.fidonet.org (newsout1.26)
  4. Newsgroups: comp.lang.modula2
  5. Subject: Re: C to Modula2 convert
  6. Message-ID: <36835.2B518BA9@puddle.fidonet.org>
  7. Date: Thu, 07 Jan 93 11:45:20 PDT
  8. Organization: FidoNet node 1:139/590 - PMI BBS, Green Bay WI
  9. Lines: 33
  10.  
  11. TC>   There is a C to Pascal written by a small UK based company and there is a
  12. TC>   shareware version (it's quite old). This program seems to work (I don't have a
  13. TC>   useable Pascal compiler!). Output was not a pretty sight -- forgivable under
  14. TC>   the circumstances.
  15. TC>   The company owner/software author has read papers fairly recently which imply
  16. TC>   to me that he is still active. On speaking to him he indicated that he could
  17. TC>   indeed do a C to M2 but wouldn't unless someone commissions the job. (this may
  18. TC>   be because the C to Pascal has not made money)
  19. TC>   I don't have that kind of money to burn.
  20.  
  21. Knowledge Software's C to Pascal translator was written as an advertisement
  22. I believe.  It is an impressive program that appears to do an arbitrary
  23. number of passes over the input to determine the Pascal code.
  24.  
  25. I believe that the C to Modula-2 translator would be very similar, however
  26. I also beleive that in many cases it would be impractical.  Many C programs
  27. use the preprocessor to modify the code that will be seen by the compiler
  28. depending on various manifest constants or definitions.  Given the various
  29. possibilities about the way in which the preprocessor can be used I suspect
  30. that there are many programs out there which cannot easily be translated
  31. once off into Modula-2.
  32.  
  33. Best Regards
  34.      Sean Wilson
  35.      (TopSpeed Technical Support)
  36.  
  37. ___
  38.  X PQ-Under-Trial 2.15 X Unable to locate Coffee -- Operator Halted!
  39.  
  40.  
  41. --  
  42. uucp: uunet!m2xenix!puddle!139!590!Sean.Wilson
  43. Internet: Sean.Wilson@f590.n139.z1.fidonet.org
  44.