Rewrite using Cross Compiler