This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
function arguments are passed in registers
- From: "Zheng Da" <zhengda1936 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 2 Jan 2008 10:25:16 +0100
- Subject: function arguments are passed in registers
Hello,
I need to do something like this:
in one program, the arguments of one specific function are passed in
the registers, and others are passed in the stack.
I know I can do it by using some inline assembly, but is there any better way?
I was looking for it in the internet. FUNCTION_ARG seems to work. But
I don't understand its explanation, and don't know how to use it.
So can anyone help me?
Best,
Zheng Da