Compilers Tutorials/Papers Libs/Sources Newsgroups FAQ Forums/Lists
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
GNU Modula-2 is the only open source Modula-2 compiler which is under active development. That's why it gets a special section here. It is a PIM compliant compiler now but ISO-features are being implemented. A basic roadmap for the compiler is available.
You may find the following links related to building GNU Modula-2 as a cross compiler for different targets useful as the URLs are a bit hard to find from the GNU Modula-2 homepage:
GM2 x ARM
GNU Modula-2 as a cross compiler for the SA1110 arm processor (iPAQ H3850).
GM2 x AVR
This page briefly describes how GNU Modula-2 can be used to produce ATMega8 binaries.
GM2 x MinGW
This page provides a script which builds the binutils, gcc and Modula-2 compilers from source for the purpose of cross compiling to the Windows platform.
In case you are wondering... It is possible to install two versions of GCC on one system. The second installation has to be built for a differing location (done with the --prefix option when running configure), so do not install packages without knowing exactly what you are doing.
Every time you want to use your new installation you have to setup your environment for the alternate compiler by exporting three environment variables:
export CC=/usr/local/gcc2/bin/GCC
export CXX=/usr/local/gcc2/bin/g++
and
export PATH=/usr/local/gcc2/bin:$PATH
This can easily done writing some short script for your preferred shell. Don't forget to switch back to your old environment if needed.
Be careful: Especially C++ programs will in many cases have problems when they are compiled with a downgraded version of GCC. That's because libraries compiled with GCC3+ are binary incompatible with older versions of the compiler. There should be less problems with pure C programs.
Other ways to install two versions of GCC on one system are described in the GCC-faq.
According to the GDB docs: "Andrew Beers of SUNY Buffalo wrote the language-switching code, the Modula-2 support, and contributed the Languages chapter of this manual." So this seems to be the remaining bit we have from the first GNU Modula-2 project. There also was the idea to use the Olsen portable library (also sometimes called YAML) with the Modula-2 frontend. The compiler was nearly finished. It was not released due to political reasons. That's all I know at the moment. I'd be really interested in more details as this may be a perfect example for a unlucky relationship between software and politics.