http://stackoverflow.com/questions/261419/arm-to-c-calling-convention-registers-to-save
To summarize:
ARM good assembly reference
http://milkpot.sakura.ne.jp/note/arm.html
Unsigned Comparison ARM
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0473j/dom1359731162080.html
Synonyms of PUSH, POP
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0489e/Babefbce.html
Calling convention for different CPUs:
http://www.ertl.jp/~takayuki/readings/info/no04.html
To summarize:
- r0-r3 are not callee-saved
- r4-r11 are callee-saved
- r12 (alias ip) is not callee-saved
- r13 (alias sp) is callee-saved
- r14 (alias lr) is not callee-saved
- r15 (alias pc) is the program counter and is set to the value of lr prior to the function call
ARM good assembly reference
http://milkpot.sakura.ne.jp/note/arm.html
Unsigned Comparison ARM
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0473j/dom1359731162080.html
Synonyms of PUSH, POP
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0489e/Babefbce.html
Calling convention for different CPUs:
http://www.ertl.jp/~takayuki/readings/info/no04.html