M2F is a complete Modula-2 compiler for GNU/Linux which obeys the 2nd Edition Programming in Modula-2 by N. Wirth. It generates code for the 8086 and 80?86 families and the is32 abstract machine. In particular it can generate pipelined Pentium code with detailed timing calculations presented in comments in the assembly language. It will bootstrap itself using a modified version of p2c 1.20 (which comes with the source distribution). M2F generates GDB debugging information and error messages are emacs compatible.
M2F is covered by the GNU CopyLeft license version 2. Source code and binaries are available in tar.gz, rpm srpm and deb format.
M2F manual page
Note m2f can only be built on a 32 bit x86 machine. Download the sources, say, m2f-4.3.1.tar.gz and type:
tar zxf m2f-4.3.1.tar.gz
sudo make install
and go and have a coffee or curry depending on your machines speed.
Fixed an atan bug and introduced EXPORT UNQUALIFIED to allow user to create definition modules for foreign language libraries. This enables users to interface to C libraries without having to write wrapper libraries. See libm.def for a brief example.
Finally added syntax error recovery. The ASM syntax has changed to the GNU syntax. Note that not all the GNU options are implemented, floating point operands to ASM statements are not supported.
Please email email@example.com with any bug reports, suggestions and grumbles.