Good news! I got the Modula-2 compile front-end in gcc to work!
% sudo port install gcc15
% cat hello.mod
MODULE hello;
FROM StrIO IMPORT WriteString, WriteLn;
BEGIN
WriteString('Hello Mod-2!');
WriteLn()
END hello.
% gm2-mp-15 -o hellomod2 hello.mod
% ./hellomod2
Hello Mod-2!
Yes, the compiler is "gm2-mp-15", had to do `port contents gcc15` to work that out.
Now I just need to relearn Mod-2, haven't touched it since the '80s.
#modula2 #retrocomputing


