Skip to content

tianyupu/comp3109ass4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COMP3109 Assignment 4

============

Resources

Compiling

Currently, to compile, use run.sh and the name of the example file.

  $ ./run.sh example.jmp

Testing

Run the following command:

  $ ./test.py

This tests all of the files in tests

Where stuff is

Unreachable code is removed within the CFGraph/cfgraph.py file within the function remove_unreachable

Jump elimination is also performed within the CFGraph/cfgraph.py file within the function remove_jump

Dead code elimination is performed in CFGraph/deadcode.py this is called in the CFGraph/cfgraph.py file with the function remove_dead.

About

Implementations of various compiler optimisations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published