Is there anyway to make the function get parmters from registers not stack during more than 4 parameters on arm port?

Richard Earnshaw (lists) Richard.Earnshaw@arm.com
Mon Mar 2 10:39:00 GMT 2020


On 01/03/2020 10:31, tugouxp wrote:
> HI guys:
>      i have a function with prototype more than 4 parameters  which invoke form syscall.
> 
> 
>    int foobar(int a, int b, int c, int d, int e, int f)
> on arm port, a,b, c, d could get from r0-r3 according arm AACPS ABI,
> but e, and f would get from stack.
> 
> 
> but how to deal with if i want all of th 6 paramters get from registers not stack?
> 
> 
> thank you!
> 

Sorry, no that can't be done.  At least, not without developing a new ABI.

R.



More information about the Gcc-help mailing list