This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

In the NONSTOP implementation why dose gdb use register r0 and r1 as temp registers for rn and rd ?


hey guys, I'm porting NONSTOP to an ARM similar architechure. I found
the following comments in the source.

Instruction is of form:
<op><cond> rd, [rn,] #imm
Rewrite as:
Preparation:
tmp1, tmp2 <- r0,r1
r0,r1 <- rd,rn
Insn: <op><cond> r0,r1 #imm
Cleanup: rd <- r0; r0<-tmp1;r1<-tmp2

why dose gdb use register r0 and r1? why not use rd and rn directly?
Thank you!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]