TIDE
Languages

Modula-3

Installing Modula-3 on Ubuntu in TIDE

Modula-3

Modula-3 is a systems programming language created at DEC SRC and Olivetti, extending Modula-2 with garbage collection, object-oriented programming, and robust exception handling.

Installation

Install Critical Mass Modula-3 (CM3) build dependencies and compiler toolchain:

apt update
apt install -y build-essential gcc g++ git python3

Download the pre-built CM3 compiler release archive from GitHub or install via official distribution binary:

wget https://github.com/modula3/cm3/releases/download/d5.10.0/cm3-min-linux-amd64.tar.gz
tar -xzf cm3-min-linux-amd64.tar.gz
sudo cp -r cm3 /usr/local/
export PATH="/usr/local/cm3/bin:$PATH"

Verification

Check the installed CM3 compiler version:

cm3 -version

Writing and Compiling Code

Create a Modula-3 source file named Main.m3:

MODULE Main;
IMPORT IO;

BEGIN
  IO.Put("Hello, World!\n");
END Main.

Compile and run the program:

cm3
./AMD64/Main

Official Resources

On this page