From: taluskie@hagar.ph.utexas.edu (Vince Taluskie)
Newsgroups: comp.unix.ultrix
Subject: Summary: Modula2 --> C Translator
Date: 30 Jul 92 05:06:05 GMT
Organization: Institute for Fusion Studies, UT-Austin
Originator: taluskie@hagar.ph.utexas.edu

About a week or so ago, I asked a question about obtaining a Modula2
to C translation program.  I received many replies and looks like most
of the software is in Germany.

Thanks for your help.

-- Vince Taluskie.

--------------------BEGINNING OF INCLUDED MESSAGES-------------------


From: Josef Grosch  <grosch@karlsruhe.gmd.de>
Date: Fri, 24 Jul 92 18:09:57 +0200

In article <76269@ut-emx.uucp> you write:
>I'm looking for a modula2 --> C translator program.


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

FILESERVER
     ftp.karlsruhe.gmd.de = 192.76.241.33
     login: anonymous
     directory: /pub/cocktail
     files: mtc.tar.Z, reuse.tar.Z

     ftp.gmd.de = 129.26.8.90
     login: anonymous
     directory: /gmd/cocktail
     files: mtc.tar.Z, reuse.tar.Z

     iraun1.ira.uka.de = 129.13.10.90
     login: anonymous
     directory: /pub/programming/cocktail
     files: mtc.tar.Z, reuse.tar.Z

     rusmv1.rus.uni-stuttgart.de = 129.69.1.12
     login: anonymous
     directory: /soft/unix/programming/compilerbau
     files: mtc.tar.Z, reuse.tar.Z

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
     Josef Grosch
     GMD Forschungsstelle an der Universitaet Karlsruhe
     Vincenz-Priesznitz-Str. 1
     D-7500 Karlsruhe 1
     Tel: +721-6622-26
     E-Mail: grosch@karlsruhe.gmd.de

TAPE HANDLING FEE
     Source licence: 500 DM or 250 US $

--------

Date: Thu, 23 Jul 92 10:11:07 +0200
From: herren@alcatel.ch (Andreas P.Herren)

Hello,

There is a modula-2 to c transalator on

	rusmv1.rus.uni-stuttgart.de (129.69.1.12)
	
in the directory

	/soft/unix/programming/compilerbau
	
in the tar file mtc.tar.

It seems to work quite good, but needs some stuff from the compilerbau-
package. Best is You look at the README or at some documentation in
the tar-file. But the stuff is quite large, and maybe You should look
somewhere in the States for a copy of this system.

Have a nice day

Mit freundlichen Gruessen

Andreas P. Herren
C.S. Engineer ETH
Manager Engineering Services Development
--------------------------------------------------------------------------------
Alcatel/STR 
Friesenbergstrasse 75
CH-8055 Zuerich
Switzerland                        Phone  +41-1-465 2111/3642
                                   Fax    +41-1-465 2411
                                   Email  andreas.herren@alcatel.ch
                                                     
----------
Date: Thu, 23 Jul 92 00:48:53 GMT
From: tchannon@black.demon.co.uk (Tim Channon)

  > I'm looking for a modula2 --> C translator program.  If you know of such
  > a thing, please drop me a line with some info.  A professor that I work
  > for needs this to convert some of his programs.  
  > 
It's called MTC and can be ftp'd from various sites. Origin Germany.

Archie can give you some site names.

This  is  a _huge_ piece of software and I guess that your main problem would 
one of porting. 

RTA have just announced their Oberon compiler. This is actually an Oberon to 
ANSI C (TopSpeed). As you know the languages are pretty close so that might 
be anouther route.

  TC. 
    E-mail: tchannon@black.demon.co.uk or tchannon@cix.compulink.co.uk
                                
----------------
Date: Tue, 21 Jul 92 07:52:10 CDT
From: larry@titan.tsd.arlut.utexas.edu (Larry Maturo)

The GMD Compiler Toolkit contains a Modula-2 compiler that outputs C source
code.  I believe you could use this.  I believe you can get it at:

    /soft/unixtools/compilerbau subdir at [129.69.1.12]

Hope this helps.

+-----------------------------------+----------------------------------------+
|                                   |                                        |
| Larry Maturo                      | Opinions expressed herein must be      |
| Tactical Simulation Division      | yours, neither I nor my employer have  |
| Applied Research Laboratories     | any.                                   |
| University of Texas at Austin     |                                        |
| P.O. Box 8029                     +----------------------------------------+
| Austin, Texas 78713-8029          |                                        |
|                                   | When you're as great as I am it's hard |
| larry@titan.tsd.arlut.utexas.edu  | to be modest, but I succeed where      |
|                                   | others fail.                           |
+-----------------------------------+----------------------------------------+

Date: Tue, 21 Jul 92 15:13:47 +1000
From: Steve Hocking <sgccseh@citecuc.citec.oz.au>

	If you look at the Stuttgart University archives you should be able
to find it. The ftp address is rusmv1.rus.uni-stuttgart.de and the directory
is soft/unixtools/compilerbau/mtc.tar.Z. You will also need front.tar.Z and
reuse.tar.Z from the same directory. The whole directory is a nice set of
compiler construction tools that produce either modula2 or C output. I have
it running under SVR4 with only a few changes to the makefiles (no ranlib,
use /usr/ucb/install instead of install, remove -w from the CFLAGS, change
the ar flags from uc to rv).


	Enjoy,


	Stephen
-- 
-----------------------------------------------------------------------------
          "Toddlers are the stormtroopers of the Lord of Entropy"

Stephen Hocking                                    sgccseh@citecuc.citec.oz.au

------------

From: "David Mosberger" <davidm@cs.arizona.edu>

Check Glance Ltd in Switzerland.  Their address is:

	Glance Ltd.
	Gewerbestrasse 4
	CH-8162 Steinmaur

	e-mail: hans@glance.ch

They have a product called M2CC/C which is a Modula-2 compiler producing
C as output.  Note that the intention is to use C as an intermediate code.
The produced C code does not retain any Modula-2 source comments.

Hope this helps.

	--david


-- 
--
David Mosberger; Department of CS; The University of Arizona; Tucson, AZ 85721
davidm@cs.arizona.edu


-----------

From: vestli@ifr.ethz.ch
Date: Tue, 21 Jul 92 10:03:26 +0200

rusmv1.rus.uni-stuttgart.de = 129.69.1.12
directory: /soft/unix/programming/compilerbau

es ist ein tool aus:
 
*************************************************************************
*                                                                       *
*  Compiler Construction Tool Box                                       *
*  ==============================                                       *
*                                                                       *
*  Version 9202                                                         *
*                                                                       *
*  Copyright (c) 1989, 1990, 1991, 1992 by                              *
*                                                                       *
*  Gesellschaft fuer Mathematik und Datenverarbeitung                   *
*  (German National Research Center for Computer Science)               *
*  Forschungsstelle fuer Programmstrukturen                             *
*  an der Universitaet Karlsruhe                                        *
*                                                                       *
*  All rights reserved. GMD assumes no responsibility for the use       *
*  or reliability of its software.                                      *
*                                                                       *
*************************************************************************

Bye

-------------------------------------

End of received messages.


Newsgroups: comp.unix.ultrix