This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Passing args in stack or register for each function


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]