What registers to save in the ARM C calling convention?
It depends on the ABI for the platform you are compiling for. On Linux, there are two ARM ABIs; the old one and the new one. AFAIK, the new one (EABI) is in fact ARM’s AAPCS. The complete EABI definitions currently live here on ARM’s infocenter. From the AAPCS, ยง5.1.1: r0-r3 are the argument and … Read more