This is a class project for a Systeems Software course at UCF. It is a functional compiler and virtual machine for the PL/0 language. This project was completed using the C language.
- Using your terminal or another method, clone the repo using
git clone https://github.com/Ryan-W31/PL0-Compiler.git
- Using your terminal, navigate into the repo on your local device. Ensure you have a GCC compiler on your device in order to run the C programs.
- Once you have a C compiler, use the following commands:
gcc compiler.c
- On macOS/Linux:
./a.out valid.txt
| On Windows:./a.exe valid.txt
- There should now be output in the terminal as well as the elf.txt file.
- Now use these commands:
gcc vm.c
- On macOS/Linux:
./a.out elf.txt
| On Windows:./a.exe elf.txt
- There should now be output in ther minal representing the call stack and activation record(s).