#19033 - f(DarkAngel) - Sat Apr 10, 2004 1:55 pm
Is there an online doc about calling conventions of ARM? Through disassembling C code, i've found that unlike usual x86, parameters are passed via registers instead of pushing to the stack.
One other question is, what is going to be done when compiler runs out of "free-to-modify" registers (r0-r12)? (like a function with 20 parameters) Pushing to the stack?
Finally, in x86, calling conventions are same for C and C++ (except for the label naming mang., which is solved with extern "C"). Is there a difference between C & C++ for GBA?
_________________
death scream...
One other question is, what is going to be done when compiler runs out of "free-to-modify" registers (r0-r12)? (like a function with 20 parameters) Pushing to the stack?
Finally, in x86, calling conventions are same for C and C++ (except for the label naming mang., which is solved with extern "C"). Is there a difference between C & C++ for GBA?
_________________
death scream...