vak: (Default)
Serge Vakulenko ([personal profile] vak) wrote2023-03-19 08:05 pm

Компилятор Simula 67

Отрихтовал компилятор Simula 67: https://github.com/sergev/simula-compiler

Теперь легко собирается и устанавливается на маке или линуксе. Выглядит так:
git clone https://github.com/sergev/simula-compiler.git
cd simula-compiler
cmake -Bbuild
make -Cbuild install
В папке examples есть несколько примеров. Запускаем простейший hello world:
$ cd examples

$ cat hello.sim
begin
outtext("Hello, World!");
end;

$ gnucim hello.sim
Compiling hello.sim:
gcc -g -O2 -Wno-unsequenced -c hello.c
gcc -g -O2 -o hello hello.o -L/usr/local/lib -lcim

$ ./hello
Hello, World!
Документация по языку Simula 67:

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org