| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| Archive-name: computer-lang/Modula2-faq/part2 Version: 2.32 Last-modified: 2007 01 25 Posting-frequency: Monthly Modula-2 Frequently Asked Questions Part 2 4. WHERE CAN I GET SOURCE CODE, OTHER INFO? 4.1.1 Is there source or other info available on the net? A. Here are some net sites I have accessed at one time or another. I am not sure if all are still available or what is in them. ftp://ftp.psg.com/pub/modula-2/ http://www.arjay.bc.ca/Modula-2/m2faq.html ( Home of this FAQ) ftp://ftp.inf.ethz.ch/pub/ ftp://NIC.SWITCH.CH ftp://ftp.mathematik.uni-ulm.de/pub/soft/modula/ WWW sites http://dir.yahoo.com/Computers_and_I...ages/Modula_2/ http://i44www.info.uni-karlsruhe.de/~modula http://modula2.org 4.2 What other FAQs or lists of pages are available? A1. http://dmoz.org/Computers/Programmin...a-2/Compilers/ A2.http://murray.newcastle.edu.au/users...2/Modula2.html A3.http://www.unet.univie.ac.at/~a9406973/modula2/ 4.3 Where can I find graphics libraries, etc? A. Try the PMOS library for various platforms at one of the following sites: ftp://ftp.psg.com/pub/modula-2/code (North America) ftp://cs.ru.ac.za/pub/languages (South Africa) ftp://dutiba.twi.tudelft.nl/pub/modula2 (Western Europe) ftp://ftp.cnit.nsu.ru/pub/msdos/programm.ing/modula2 (Eastern Europe). 4.4 Are there any mathematical libraries available? A1. See Numerical Procedures in Modula-2 -- authorized translation of Numerical recipes in Pascal from PolyWare (Klara Vancso): klarav-at-telic.nl (work) OR k.vancso-at-tip.nl (home) The CD-ROM has the Modula-2 sources. See http://www.nr.com Note that sources given in this book are of the "quick and dirty" variety and cannot be sold as such, only in compiled form. A2. LMathLib is a library that defines a number of mathematical functions for Modula 2 programs. Unlike other libraries of the same kind, LMathLib patches the Modula 2 compiler. All library functions are inlined as assembler code for the Floating Point Unit. This results in faster code compared to the traditional solution with subroutine calls. Due to this machine dependent technique, you can use the library ONLY with the (free) GMD Modula System Mocka for Linux on INTEL based machines. You can get the LMathLib library via anonymous ftp from ftp://tee-1.tee.uni-essen.de/pub/Mocka/(132.252.131.33) Documentation is included. A3. MATHPAK 87/32 is available for most 32-bit compilers. A lite version for Canterbury M2 is freely downloadable from http://www.webcom.com/mhc/welcome.html Features: Written fully in INTEL CPU machine language Math Coprocessor control Basic Math functions Vector and Vector-Scalar Routines Vector and Vector-Scalar 'Skip' Procedures Complex Number Routines Complex Vector and Vector-Scalar Routines Polynomial Manipulation Routines Simple Matrix and Vector-Matrix Routines Solving Systems of Linear and Nonlinear Equations Unconstrained Minimization Nonlinear Least-Squares Minimization Eigenvalues and Eigenvectors Singular Value Decomposition Extrapolation of Vector-Sequences Statistical and Data-Fitting Rountines Fourier Transforms and Convolution Spectral Analysis Routines Numerical Integration Differential Equations 4.5 Where can I get a Modula-2 to C converter? A: The program mtc is available from ftp://ftp.ira.uka.de/pub/programming...ail/mtc.tar.gz ftp://ftp.Uni-Koeln.DE/usenet/comp.a.../modula-2/mtc/ An already ported version for DOS+DJGPP can be found at ftp://ftp.uni-stuttgart.de/pub/unix/programming/modula/ Several of the compilers available work or can work by producing C or C++ code and can also serve this purpose. See p1, XDS and Ulm's m2c (not the same as mtc) listings for examples. 4.6 Where can I get a Modula-2 to Modula-3 converter? A. m2tom3 is available under the terms of the GNU Library General Public License from ftp://ftp-i3.informatik.rwth-aachen....ontrib/m2tom3/ m2tom3 is a system to port Modula-2 programs to Modula-3. It consists of two parts: - A conversion program which tries to create a Modula-3 source text with the same semantics as the Modula-2 input while retaining the original look and feel as good as possible. - A base library which tries to emulate the Modula-2 standard library using the Modula-3 standard library. contact: Peter Klein office: Ahornstrasse 55, 52074 Aachen, Germany e-mail: pk-at-i3.informatik.rwth-aachen.de. Tel.: +49/241/80-21316 Fax.: +49/241/8888-218 4.7 Where can I get a Modula-2 to Component Pascal converter? A.This is available from http://www.lrz.de/~Bernhard_Treutwein/m2o.txt Note: Component Pascal is an Oberon dialect, but the translator does not use any CP specific features, i.e. generates standard Oberon-2. 4.8 Are there any Modula-2 applications around? A. Besides the items mentioned in 1.11, the Idaho National Engineering Laboratory (INEL) develops and maintains a now ~350,000 line MODULA-2 reusable component library called SAGE. For more information on SAGE send E-Mail to hotline-at-sage.inel.gov or see the web site at http://sage.inel.gov/homepage.htm 4.9 Are there any compiler construction tools available? A1. Some old ones appear in ftp://ftp.gmd.de/GMD/cocktail/ A2. Coco/R generates recursive descent parsers and their associated scanners from attribute grammars. Full source code, and a variety of simple example applications are supplied in the distribution kits. The Modula versions (1.50 is the latest) are available from ftp://ftp.ssw.uni-linz.ac.at/pub/Coco/ and the Java versions are there too, at ftp://ftp.ssw.uni-linz.ac.at/pub/Coco/javacoco.htm See also: ftp://ftp.inf.ethz.ch:/pub/software/Coco ftp://ftp.psg.com:/pub/modula-2/coco ftp://cs.ru.ac.za:/pub/coco ftp://ftp.fit.qut.edu.au:/pub/coco There are versions for the MS-DOS compilers (JPI, FST, Logitech, StonyBrook, Gardens Point), for the Mocka compiler for Linux and FreeBSD, as well as for the Gardens Point Unix compilers, including Linux and FreeBSD. There is also a version that produces TurboPascal units very similar to the Modula-2 modules. This is also FreePascal compliant now. A port for the p1 compiler on Mac OS 9 is also available. Latest information is available at http://cs.ru.ac.za/homes/cspt/cocor.htm. Pat Terry's textbook "Compilers and Compiler Generators" that uses Coco/R is now online at http://www.scifac.ru.ac.za/compilers A2. A copy of the EBNF for ISO Modula-2 can be found in Appendix 3 of the shareware text at: http://www.modula-2.com 4.10 Is there an applications framework for Windows programming? A. Try looking at ftp://ftp.ifi.uio.no/pub/sjr/m2afx.zip orftp://ftp.leo.org/pub/comp/platforms/pc/windows/programming/modula/m2afx.zip This software is an application framework that implements a number of classes that encapsulate the weirdness of the Windows C API and attempts to present it in a cleaner way to the Modula-2 programmer. 4.11 Does there exist something to convert a C header file to a Modula-2 DEFINITION MODULE file for me? A. Try looking at the XDS Ltd site for the H2D freeware product on some platforms 4.12 Where can I get the C code of a Modula-2 compiler? A. Most Modula-2 compilers are written in Modula-2. It seems rather strange to me that one would want to trust the compilation of a good language to a tool written in a poor one. 4.13 What can I do with* old sources from Modula Corp? A. From the former president Richard Ohran (ROhran-at-vinca.com): "Modula Corp. is dead. Do whatever you like." 4.14 Are there source code examples anywhere for Windows programmers? A. Translations of Example Programs in Charles Petzold's book "Programming Windows 95" from Visual C++ to Stony Brook and XDS Modula-2 by Peter Stadler, Vienna can be found at: http://www.nhm-wien.ac.at/Petzold/Index.html 4.15 Isn't there a Modula-Prolog project somewhere? A. Try ABB Corporate Research and Carlo Muller, who may license it to you for non-commercial purposes. mailto:cadamuller-at-swissonline.ch 4.16 Is C. Lins SCL library available? A. Yes, at http://www.aha.ru/~uranus/download/scl.zip 4.17 Can you help me with my assignments? A1. Some people may give you hints, but please do not subvert your professor and your education by submitting work other people do for you. A2. Here are two answers submitted to the newsgroup in response to a desperate student's plea for ANY Modula-2 program. The first is rather prosaic; the second a little more imaginative: MODULE homework; IMPORT STextIO; BEGIN LOOP STextIO.WriteString ("I will do my own homework."); STextIO.WriteLn; END; END homework. main() { int i; for(i=0; i |
![]() |
| Thread Tools | |
| Display Modes | |