3AC Interpreter

I’ve posted a virtual machine written in Python that will execute the 3AC for Assignment 3. You can download a copy fo the 3AC factorial program here. Make sure that you have Python installed, then type

$ python 3vm.py factorial.3ac

You’ll see a trace of memory accesses and the output of the program.

(Note: now that I’ve actually been able to run the program, I’ve updated the original factorial program and its corresponding 3AC code, and added a HLT instruction to the 3AC definition.)

Comments are closed.