Implemented compiling variables down to register read/write calls