Article View: comp.lang.modula2
Article #690mtc - Modula-2 to C translator
From: Josef Grosch
Date: Wed, 09 May 1990 17:44
Date: Wed, 09 May 1990 17:44
60 lines
2407 bytes
2407 bytes
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 $
Technical Details
Message-ID:
<1233@gmdka.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!mcsun!unido!gmdka!groschShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!mcsun!unido!gmdka!grosch From: grosch@gmdka.UUCP (Josef Grosch) Newsgroups: comp.lang.modula2 Subject: mtc - Modula-2 to C translator Keywords: Modula-2-C-translator, source to source translator Message-ID: <1233@gmdka.UUCP> Date: 9 May 90 17:44:46 GMT Organization: GMD Karlsruhe, W-Germany Lines: 60