HOME

Resources

Compilers Tutorials/Papers Libs/Sources Newsgroups FAQ Forums/Lists

Special Areas

GNU Modula-2 Modula-2 CGI Tutorial Howto Setup a Fine Modula-2 Environment Programming with Modula-2 Misc. Modula-2 Related Pages Not-English Modula-2 Pages Downloads Please Sign My Guestbook Code Search

Recommended Links

GNU Modula-2

Modula-2 home page

Installing a Modula-2 Environment


[ top ]  Microsoft Dos / Windows

  1. Working with Windows (win95+), you have one "real" choice - that is using the XDS-environment by Excelsior. They describe their product as follows: "Native XDS-x86 is the most advanced optimizing ISO Modula-2 and Oberon-2 compiler for Intel x86 based platforms available on the market. It allows you to freely mix those languages, access the operating system API, and use third-party C libraries". Well, this for sure is the most mature product which also comes with great documentation and a useful set of libraries. I could not find a better system. Visit Excelsior for details about their products. Since Stonybrook Modula-2 has left the scene the XDS package is even more important as it is now the only free ISO Modula-2 compiler available. Setting up the compiler environment is easy - just download the file and execute it, it's a usual install-shield application. A Modula-2 to C translator is also available as is a Topspeed compatibility pack.
  2. For those familiar to Linux or other Unix-like environments GNU Modula-2 is a possibility. Using the Cygwin environment you can use the whole GNU toolchain. To get a nice IDE you may want to install Eclipse and Modulipse. Cygwin is surely something one has to get used to, but there are lots of great applications like gvim and rxvt on top of a X-Server which can be installed via the setup to get you up and running. I use Notepad++ at the moment to write my Modula-2 apps combined with GNU Modula-2 and GNU Make. And I always know the stuff will work with Linux too.
  3. Another way to somehow "comfortably" use Modula-2 with Windows:
    Download the free FST 4.0 compiler (and the LHA utility to unpack the file - I assume you know howto) and the Windows-IDE for the compiler. copy the IDE-executable to FST's bin-directory and set it up: first goto options->environment and set the appropriate paths to your FST-installation. the program saves your settings to a file called "modula.ini". you are ready to go - Load one of the example-files from the 'exa'-directory, compile and link it - but DO NOT RUN the program! Most of the examples will produce a first-class bluescreen when executed (due to not allowed system-calls). When running Windows just use them for testing the environment. Alternatively you may want to download my local installer-package wich will install the compiler, the IDE and some simple HTML-documentation. An example of how to use Borland's Turbo Debugger with FST (by Julian Miglio) is also included.
    Do you speak Spanish? Then you may also want to have a look at www.idemodula2.freeservers.com - there you can find another Windows-IDE for FST. It's only available in Spanish.
  4. If you want to use GPM (The compiler produces very small executables and is ideal for programming commandline-tools or CGI), you may want to use the package in combination with some good and free editor. I used Ulli Meybohm's Proton-Editor and Notepad++. Both are really fast programs with lots of functions and configuration options. You can start gpmake (the one-step-build-utility from GPM) from within the programs. Modula-2 syntax-highlighting is built into Proton, an ISO-Modula-2 language file is available from the download-area as are files for Notepad++.
    For people using plain DOS-environments: Best editor with IDE-functionality for all DOS-based Modula-2 compilers is Set's Editor. the editor is also available for Linux and gives you a standardized environment e.g. for the Gardens Point Compiler under different operating systems. Great program!!
    Like Set's Editor GPM Total is a DOS-IDE especially made for Gardens Point Modula-2. A fast Turbo-Vision-like Editor with Error-Redirection makes the thing quite usable, but the IDE lacks a few things I really would like to see, e.g. it does not offer syntax-highlighting.


[ top ]  FreeBSD NetBSD and OpenBSD

  1. FreeBSD:
    Current FreeBSD stable releases do not provide pre-packaged Modula-2 compilers. There also is no compiler in the ports collection (exception: the translator p2c). If you do not want to use Linux binaries (which is possible), you'll have to download software manually:
  2. NetBSD and OpenBSD:
    Both systems are able to execute Linux binaries as is FreeBSD. So you may want to try to install XDS Modula-2. But compiling GNU Modula-2 is quite easy if you do not forget to install GNU Make (check if it is already installed by typing "gmake")! BSD make is a bit different and made trouble when I tried to use it.


[ top ]  Linux

I am using Debian Linux for some time now, so I can only tell you what's possible here - maybe there are differences between the distributions - there shouldn't be too many...
Excelsior/XDS released there Modula-2/Oberon-2 development system (the compiler and the Modula-2 to C translator) for free but there is no debugger. The XDS-package comes with a full set of PIM and ISO modules, modules for accessing Xlib and POSIX-functions and there is a Topspeed compatibility pack.
GNU Modula-2 has lots of libraries meanwhile and will come with support for Logitech and ISO libs in the future, so this seems to be the future of Modula-2. Binary packages for Debian are available from the compilers homepage.
I also used a combination of gVIM and GPM. I've played with the X11 interface of GPM and I was impressed. I moved away back then because the compiler was not fully ISO-compliant and I wanted to use the complete ISO Modula-2 (especially user defined exceptions).


[ top ]  Free Editors with M-2 Highlighting



Get more information


FMP RSS Feed

IRC Modula-2 Chat

Modula-2 Webring
[ List_all | Random | Join ]
[ Prev | Next ]

Google


dmoz



Contact, suggestions, submission of news items: contact information







Made with CSS