david@oahu.cs.ucla.edu (David Dantowitz) (05/12/91)
I have begun using p2c to convert Modula-2 to C and am having limitted results. Mind you, the docs say that the implementation is incomplete, but I'm curious how successful people have been. -- David Dantowitz david@cs.ucla.edu Singing Barbershop when I'm not computing...
grosch@gmdka.UUCP (Josef Grosch) (05/14/91)
In article <1991May12.163946.13309@cs.ucla.edu> david@oahu.cs.ucla.edu (David Dantowitz) writes: >I have begun using p2c to convert Modula-2 to C and am having limitted >results. Why don't you use mtc? Josef Grosch MTC(1) GMD-Forschungsstelle-Karlsruhe MTC(1) NAME mtc - Modula-2 to C translator DESCRIPTION Mtc translates Modula-2 programs in readable and therefore maintainable K&R C code without major restrictions (even nested procedures and modules). The translator is largely generated using the GMD compiler construction toolbox. It contains semantic analysis as far as needed for the task. Semantic analysis is rather complete and comprises scope handling, name analysis, and type determination. Context conditions are not checked, as it is assumed that only correct programs are processed. Mtc translates Modula-2 as defined in "N. Wirth: Programming in Modula-2, Third Corrected Edition, Springer-Verlag, 1985". RESTRICTIONS Coroutines are not implemented yet. Comments are lost. IMPLEMENTATION-LANGUAGES Modula-2 or C TARGET-PLATFORMS SUN 3 oder SUN 4 / SunOS DEC Station / ULTRIX VAX / ULTRIX oder BSD UNIX 4.2 PCS Cadmus / MUNIX others DISTRIBUTION Medium: DC 300 A data cartridge or TK 50 in tar format source program in Modula-2 as well as in C binary executable for SUN 3 CONTACT J. Grosch GMD Forschungsstelle an der Universitaet Karlsruhe Vincenz-Priesznitz-Str. 1 D-7500 Karlsruhe 1 Tel: +721-6622-26 E-Mail: grosch@gmdka.uucp PRICE Source licence: 500 DM or 250 US $
Pat.Terry@p101.f4.n494.z5.fidonet.org (Pat Terry) (05/15/91)
>In article <1991May12.163946.13309@cs.ucla.edu> david@oahu.cs.ucla.edu >(David Dantowitz) writes: >I have begun using p2c to convert Modula-2 to C and am having limitted >results. >Why don't you use mtc? >Josef Grosch Could the answer be related to >PRICE Source licence: 500 DM or 250 US $ while p2c is free? (One of my colleagues got p2c on anonymous FTP I think) -- uucp: uunet!m2xenix!puddle!5!494!4.101!Pat.Terry Internet: Pat.Terry@p101.f4.n494.z5.fidonet.org
grosch@ibiza.karlsruhe.gmd.de (Josef Grosch) (05/22/91)
In article <7228.283777BF@puddle.fidonet.org> Pat.Terry@p101.f4.n494.z5.fidonet.org
(Pat Terry) complains:
The price for the Modula-2 to C translator mtc is 500 DM or 250 US $
while p2c is free?
I have to clarify: Meanwhile mtc is available via ftp from:
rusmv1.rus.uni-stuttgart.de = 129.69.1.12
file: /soft/unixtools/compilerbau/mtc.tar.Z
The above price is the tape handling fee for that cases that we have to send a tape.
Josef Grosch
(grosch@gmdka)