very simple global register allocation was implemented