obcomp
Oberon Compiler Exercise written in Pascal
- Quiet · last change 4-7-2021
- ★ 5 on GitHub
README
Oberon Compiler
- Hobby Compiler for the Oberon Language written in Pascal.
- Primarily hosted on and targetting x86_64 Linux.
- Outputs assembly.
Design
- Single-pass.
- Design inspired by Wirth's implementation.
- See Language report.
- Hopefully flexible to support other output architectures/code generators in the future.
Building
Under Ubuntu
Requisites
FreePascal (to build compiler) nasm, gcc (ld) (to assemble and link compiler output to executable program)
apt install fpc
git clone https://github.com/hazza312/obcomp/
cd obcomp
make build
