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. Since ADW Modula-2 is available I think it is the best choice to use Modula-2 with a Windows operating system. The compiler comes with a nice IDE, the package includes a debugger and some handy utilities. The help files are very useful and I want to emphasize that ADW Modula-2 (which is the successor of Stony Brook Modula-2) is the only free compiler available which implements the complete ISO Modula-2 standard. In difference to other compilers this includes the extensions of the standard for object orientation and the generics extension of Modula-2.
  2. Working with Windows you may also be comfortable with 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 a mature product which also comes with great documentation and a useful set of libraries. Visit Excelsior for details about their products. For people targeting other platforms it may be of interest that a Modula-2 to C translator is also available. As is a Topspeed compatibility pack.
  3. 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.
  4. 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.
  5. 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:
    • Download the FreeBSD-version of Gardens Point Modula-2 (ported from Linux).
    • The FreeBSD-port of Mocka seems to have disappeared.
    • Your best option will of course be GNU Modula-2 (M2F should of course also compile). You'll have to use GNU Make (package gmake) to build it!
  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 is stable, comes with lots of libraries and is actively maintained and developed. Binary packages for Debian are available from the compilers homepage. The Modulipse IDE (based on Eclipse) is available.
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