First I would like to mention gm2 (GNU Modula-2 compiler), a front-end in GCC 
for Modula-2.
I don't expect a version for DJGPP, but it seems to be now an official language 
of GCC:
https://www.gnu.org/software/gcc/frontends.html
https://gcc.gnu.org/onlinedocs/gcc-13.2.0/gm2.pdf

After that I would like to mention ACK: Amsterdam Compiler Kit
This is very old, but still slowly maitaned:
https://github.com/davidgiven/ack
A cross-compiler that supports ANSI C, Pascal, Modula 2, Basic for DOS 16 bits 
and 32 bits (among many platforms).
While making it, there was about 10k steps, but work after that (very few libs 
however).

But I guess what I consider the most interresting discovery is: FST 4.0 
compiler.
«Fitted Software Modula-2. last and now free version of the FST-compiler (4.0).
a good and compact programming-environment (like Turbo Pascal 3.0) for dos.
the compiler isn't ISO-standard. »
This is a DOS 16 bit compiler for Modula-2.
The IDE is very basic.

About the editor: You should know Alt-Q (Quit) and Alt-S (Save).

It was hard to me to find (at first was finding setup.exe for Windows), but as 
I am on Linux, was not happy with it.
Finally downloaded it from https://vetusware.com/download/FST%20Modula-2%204.0/
It seems to have been a Shareware that became a Freeware in this last version 
(4.0).

My first mistake was to unzip it in Linux rather than unzip it in FreeDOS.
My second mistake was to try to compile the libs as explained in Read.ME file 
(as they are already compiled in the archive).
My third mistake was to not "set M2LIB=C:\FST\LIB".
It produce .exe in huge model (suppose to be able to do large too.

Libs are quite limited, seems to have GotoXY functionnality, change video mode, 
but not putpixel, line, etc... just draw strings.

I have a problem with  lists example in DOC, give an invalid opcode when I ran, 
but other than that was able to compile SIEVE.MOD
and modify BADSIEVE.MOD until it worked (an example of file with errors in it).

For me this is interesting... small but quite powerfull language, not too many 
libs... with .DEF file (equivalent of .h) to learn them (the libs).

Hope this could be a nice discovery for you too.



_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to