I am super busy, but I want to spend some time talking about how to write a compiler in ocaml that has liveness analysis, and can generate interference graph from CFG and liveness analysis, which is fundamental to doing correct, if not efficient, register allocation.
PeterYaoNYU/CompilerInOCaml
The Code can be found under the folder ps7, if not restructured after the writing of this post.
This is part of the NYU graduate level capstone project, with Prof. Joseph Tassarotti.