adding arm code compilable on PC, should do some testing