Hi!
Is anyone knows what compiler directive to use to force the parameters passed in by the order of R0, R1, R2 and R3(R0 is the first one, and R3 the last)? I found some functions didn't follow this rule(my armcc version is v4.0.0.524).
Best Regards,
R0-R3 can be abused for any purpose by a called function, and that is generally arranged by the compiler. In fact, that is part of the ABI (happy now, Zuisti, everybody's friend?)
If it does not happen, it is probably because the registers were used for another purpose.
View all questions in Keil forum