From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4597 invoked by alias); 2 Jan 2008 10:58:30 -0000 Received: (qmail 4577 invoked by uid 22791); 2 Jan 2008 10:58:29 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 02 Jan 2008 10:53:44 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m02ArhG7007348 for ; Wed, 2 Jan 2008 05:53:43 -0500 Received: from zebedee.littlepinkcloud.COM (vpn-14-13.rdu.redhat.com [10.11.14.13]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m02Arg8l017275; Wed, 2 Jan 2008 05:53:42 -0500 Received: from littlepinkcloud.COM (localhost.localdomain [127.0.0.1]) by zebedee.littlepinkcloud.COM (8.13.8/8.13.5) with ESMTP id m02ArZCs020503; Wed, 2 Jan 2008 10:53:37 GMT Received: (from aph@localhost) by littlepinkcloud.COM (8.13.8/8.13.5/Submit) id m02ArYwg020500; Wed, 2 Jan 2008 10:53:34 GMT MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18299.27950.981747.162451@zebedee.pink> Date: Wed, 02 Jan 2008 10:58:00 -0000 From: Andrew Haley To: "Zheng Da" Cc: gcc-help@gcc.gnu.org Subject: Re: function arguments are passed in registers In-Reply-To: <537a6f690801020125q47e76ab9sb5bee76aa3d0f2b@mail.gmail.com> References: <537a6f690801020125q47e76ab9sb5bee76aa3d0f2b@mail.gmail.com> X-Mailer: VM 7.19 under Emacs 22.0.93.1 X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg00014.txt.bz2 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