Passing args in stack or register for each function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I want to design a backend on GCC which has following feature:
The functions which have the attribute "pass_in_reg" (the attribute I defined) will pass their arguments in registers; otherwise, they will pass arguments in stack.
Now I can do that, but the callee functions don't know the position of arguments passing from caller exactly, it's wrong.
Does GCC support to do that? Can anyone help me? Thanks in advance.

Le Ton Chanh 
email:letonchanh at yahoo dot com


      

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux