Languages
Simula
Installing Simula on Ubuntu in TIDE
Simula
Simula is an object-oriented programming language developed in the 1960s at the Norwegian Computing Center. It introduced foundational object-oriented concepts including classes, objects, inheritance, and subclasses.
Installation
On Ubuntu, Simula code can be compiled using GNU Cim (cim), which translates Simula 67 code to C and compiles it using GCC.
Install build dependencies and compile GNU Cim from source:
apt update
apt install -y build-essential autoconf git
git clone https://github.com/bruteforce774/simula.git
cd simula
CFLAGS="-O2 -std=gnu89 -Wno-implicit-int -Wno-implicit-function-declaration -Wno-return-mismatch" ./configure --prefix=/usr/local
make
make installVerification
Check that the GNU Cim compiler is properly installed:
cim --versionWriting and Compiling Code
Create a Simula source file named hello.sim:
Begin
OutText ("Hello, World!");
OutImage;
End;Compile the Simula program:
cim -o hello hello.simRun the compiled binary:
./hello