This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Passing args in stack or register for each function
- From: Le Ton Chanh <letonchanh at yahoo dot com>
- To: GCC Help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 11 Nov 2008 16:32:21 -0800 (PST)
- Subject: 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