Hi all, Years ago, way back in 2013, for whatever dumb reason, I decided to try and build m2c 0.6 (circa 1998) for DJGPP inside DOSEMU. M2c is GPL and supports so-called "PIM dialect" Modula-2 (aka, Wirth's original version).
I didn't use it much (except barely for my Befunge-93 interpreter), so I didn't give it much thought until recently. It has some bugs, but overall it "mostly" works. Unlike Pascal, files and strings are relegated to separate external library modules (i.e. usually non-standard). Unfortunately, most (but not all) compilers are PIM and not ISO. You still need DJGPP (gcc), too, so I just used my old fits-on-one-floppy-compressed version (gcc 2.95.3 + binutils 2.16.1 + djdev 2.03p2). * https://en.wikipedia.org/wiki/Modula-2 * https://www.modula2.org/ * https://freepages.modula2.org/ * https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/devel/modula2/m2c/ * https://sites.google.com/site/rugxulo/DJGPP203.7Z?attredirects=0 * https://sites.google.com/site/rugxulo/compilers (sources to GCC et al.) Sorry if the binary .ZIP (m2c.zip) doesn't have proper documentation (check the source archive, it has the man pages and examples). There are several other compilers for DOS, too, but they're harder to find or set up. Much better would be getting GNU gm2 (soon to be part of GCC proper) to build for DJGPP, but I doubt that's going to happen. _______________________________________________ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel