🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2223

Re: Using p2c to convert Modula-2 to C (any success stories?)

#2223
From: Josef Grosch
Date: Tue, 14 May 1991 09:40
59 lines
2226 bytes
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 $
Technical Details
Message-ID: <2104@gmdka.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!ox.com!math.fu-berlin.de!unido!gmdka!grosch
References: <1991May12.163946.13309@cs.ucla.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!ox.com!math.fu-berlin.de!unido!gmdka!grosch
From: grosch@gmdka.UUCP (Josef Grosch)
Newsgroups: comp.lang.modula2
Subject: Re: Using p2c to convert Modula-2 to C (any success stories?)
Keywords: mtc
Message-ID: <2104@gmdka.UUCP>
Date: 14 May 91 09:40:49 GMT
References: <1991May12.163946.13309@cs.ucla.edu>
Reply-To: grosch@gmdka.UUCP (Josef Grosch)
Organization: GMD Karlsruhe, W-Germany
Lines: 59