[comp.lang.modula2] mtc - Modula-2 to C translator

grosch@gmdka.UUCP (Josef Grosch) (05/10/90)

During the last month several people have asked for a Modula-2 -> C
translator, a few such programs have been mentioned, well, here is an
other one: mtc.

Mtc is stable and has successfully translated more than 100,000 lines
of non-trivial Modula-2 code to C. The produced C code runs without
problems on several target platforms. The C versions of the programs
are in general a little bit smaller and a little bit faster than the
original versions. BTW, mtc runs 3 times faster than the Modula-2
compiler of SUN.


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 gen-
     erated using the GMD compiler construction toolbox. It con-
     tains 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 $

Kaare.Rasmussen@p3.f15.n231.z2.fidonet.org (Kaare Rasmussen) (05/26/90)

Hi Josef

 JG> During the last month several people have asked for a Modula-2 -> C
 JG> translator, a few such programs have been mentioned, well, here is an
 JG> other one: mtc.

I would be more interested in a C to modula-2 translator. Do you have
such a creature, too?
And while we're at it, how about a TurboPascal to modula-2 translator.
Anyone?

Regards, Kaare


--  
uucp: uunet!m2xenix!puddle!2!231!15.3!Kaare.Rasmussen
Internet: Kaare.Rasmussen@p3.f15.n231.z2.fidonet.org

djgjones@SELKIRK.BC.CA (David Jones) (05/31/90)

        Logitech supplies a TurboPascal to Modula 2 translator.  I am not
sure if it comes with the compiler or as an extra.

David Jones, Selkirk College, Castlegar, B.C. djgjones@selkirk.bc.ca

DUG@CZHETH5A.BITNET (06/01/90)

Comment: Mail not returnable through this path, use the list address

Author: AEOLUS::NOTES9B "Wehrli Christoph"
Topic 825.1
Time:  1-JUN-1990 08:40 ZRH

    -< TP2M2 >-

    Turbo Pascal to Modula2 is in the Logitech Toolkit.