Is there a way to force gcc to pass the parameters of a function on the stack?
I don't want to use the registers for parameter passing.
Update: I'am using arm-gcc from CodeSourcery
According to: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042d/IHI0042D_aapcs.pdf
The first four registers r0-r3 (a1-a4) are used to pass argument values into a subroutine and to return a result value from a function. They may also be used to hold intermediate values within a routine (but, in general, only between subroutine calls).
There are, on ARM, no other calling conventions but the default, that I know of. And here is why: