A Compiler and Optimizer for tinyL Solution