public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: "Zheng Da" <zhengda1936@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: function arguments are passed in registers
Date: Wed, 02 Jan 2008 10:58:00 -0000	[thread overview]
Message-ID: <18299.27950.981747.162451@zebedee.pink> (raw)
In-Reply-To: <537a6f690801020125q47e76ab9sb5bee76aa3d0f2b@mail.gmail.com>

Zheng Da writes:
 > 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?

We can't really tell what you need.  Can you explain to us what you
are trying to do?

Andrew.

-- 
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903

  reply	other threads:[~2008-01-02 10:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-02  9:26 Zheng Da
2008-01-02 10:58 ` Andrew Haley [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18299.27950.981747.162451@zebedee.pink \
    --to=aph@redhat.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=zhengda1936@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).