DISCLAIMER: These notes are from the defunct k8 project which precedes SquirrelJME. The notes for SquirrelJME start on 2016/02/26! The k8 project was effectively a Java SE 8 operating system and as such all of the notes are in the context of that scope. That project is no longer my goal as SquirrelJME is the spiritual successor to it.
For register allocation I need a base class which can be extended by sub- classes to change the algorithm used for allocation and such. I believe the first algorithm I will implement is a greedy allocator which just uses the least accessed native variable.