public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* function arguments are passed in registers
@ 2008-01-02  9:26 Zheng Da
  2008-01-02 10:58 ` Andrew Haley
  0 siblings, 1 reply; 8+ messages in thread
From: Zheng Da @ 2008-01-02  9:26 UTC (permalink / raw)
  To: gcc-help

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

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

end of thread, other threads:[~2008-01-03  6:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-02  9:26 function arguments are passed in registers Zheng Da
2008-01-02 10:58 ` Andrew Haley
2008-01-03  7:55   ` Zheng Da
2008-01-03 11:26     ` Tom St Denis
2008-01-03 12:31       ` Tom St Denis
2008-01-04 15:23       ` Zheng Da
2008-01-04 23:41         ` Greg Smith
2008-01-05 11:13           ` Zheng Da

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).