compiler: codegen for APU calls

also add dummy runtime implementation