Thursday, August 21, 2008

r67 with Register Fingerprinting

karen% m4s /fingerprint/regs
r12 60
r13 6
r14 48
r15 221

This example was compiled with an old version of IAR, which would only pass parameters in r12 and r14. r15 is the first scratch register, and r13 the second. GCC allocates r15, r14, r13, r12; recent revisions of IAR allocate r12, r13, r14, r15.


No comments: