public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Is there anyway to make the function get parmters from registers not stack during more than 4 parameters on arm port?
@ 2020-03-01 10:31 tugouxp
  2020-03-02 10:39 ` Richard Earnshaw (lists)
  0 siblings, 1 reply; 2+ messages in thread
From: tugouxp @ 2020-03-01 10:31 UTC (permalink / raw)
  To: gcc-help

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!


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is there anyway to make the function get parmters from registers not stack during more than 4 parameters on arm port?
  2020-03-01 10:31 Is there anyway to make the function get parmters from registers not stack during more than 4 parameters on arm port? tugouxp
@ 2020-03-02 10:39 ` Richard Earnshaw (lists)
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Earnshaw (lists) @ 2020-03-02 10:39 UTC (permalink / raw)
  To: tugouxp, gcc-help

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-02 10:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-01 10:31 Is there anyway to make the function get parmters from registers not stack during more than 4 parameters on arm port? tugouxp
2020-03-02 10:39 ` Richard Earnshaw (lists)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).