Actually, pc is correctly loaded, and I guess there isa problem with my copy, but I dont see which one.main is a naked function and has no local variable,so it doesnot use the stack at all...When I replace the first sub to compute the size witha harcoded one (ie. mov r2, #0x1000), it works...