| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#11
| |||
| |||
| Thanks to all who responded. I think I would first try the XDS Compliers at http://www.excelsior-usa.com/xdsx86.html - I am getting a lot of errors in my code now, so I am struggling to fix them. Thanks again. O.O. |
|
#12
| |||
| |||
| On Mar 21, 12:22 pm, "O. Olson" <olson_...@yahoo.it> wrote: > Hi, > > I am interested in converting some legacy code from Modula 2 to a C > based language like C, C++, C# or Java. Are there any code > converters?? I'd be grateful is someone could point me in the correct > direction. > > I checked the Modula-2 FAQ athttp://groups.google.com/group/comp.lang.modula2/browse_frm/thread/ef... > > It addresses this topic in section 4.5. However all of the links there > do not work. > > I also tried Canterbury Modula-2 for Java fromhttp://www.mhccorp.com/downloads.shtml > - but I could not figure out how to get that to work. > > Thanks a lot. > O.O. A late answer... I have a huge code base in Modula-2, and was left stranded when Stonybrook chose to sell out, and what I eventually found was that the simplest, and above all the safest, was to do hand translation to plain C. I can now literally convert procudeure by procedure and module by module to C with almost no logical errors at all and if you already have programmed in C (I hadn't) it should be no problem. To ease the pain, first rewrite the Modula-2 code to be more C-like and in this part of the translation take advantage of that Modula-2 is a safer language (to remove all nested procedures is of course a typical thing to do before converting to C). Now, since the Stonybrook compiler is very very stable and runs well on Vista etc. (which make it all the sader that they did not continue...), a total conversion is not extremly urgent so in practise I have so far only converted all my general purpose libraries and some of my programs that I want to be in a language that can be taken over by someone else if need be. However, from this I have learned that the conversion is not an actual problem, it is only a matter of time and the result is predictable. |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.